mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
Fix CI
This commit is contained in:
parent
7431b6941f
commit
fba3f4b87f
5 changed files with 10 additions and 5 deletions
|
|
@ -62,6 +62,10 @@ final class StatisticsComponent
|
|||
$this->eventName = 'sylius.admin.dashboard.statistics';
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
* @throws \Exception
|
||||
*/
|
||||
#[ExposeInTemplate]
|
||||
public function getStatistics(): array
|
||||
{
|
||||
|
|
|
|||
|
|
@ -18,13 +18,13 @@ use Sylius\Bundle\UiBundle\Registry\Block;
|
|||
/** @internal */
|
||||
final class BlockRenderingHistory
|
||||
{
|
||||
/** @var array<array{name: string, start: float, stop: float, time: float, blocks: list<array{definition: TemplateBlock, start: float, stop: float, time: float}>}> */
|
||||
/** @var array<array{name: string, start: float, stop: float, time: float, blocks: list<array{definition: Block, start: float, stop: float, time: float}>}> */
|
||||
private $renderedEvents = [];
|
||||
|
||||
/** @var array<array{name: string, start: float, stop?: float, time?: float, blocks: list<array{definition: TemplateBlock, start: float, stop: float, time: float}>}> */
|
||||
/** @var array<array{name: string, start: float, stop?: float, time?: float, blocks: list<array{definition: Block, start: float, stop: float, time: float}>}> */
|
||||
private array $currentlyRenderedEvents = [];
|
||||
|
||||
/** @var array<array{definition: TemplateBlock, start: float, stop?: float, time?: float}> */
|
||||
/** @var array<array{definition: Block, start: float, stop?: float, time?: float}> */
|
||||
private array $currentlyRenderedBlocks = [];
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ final class HtmlDebugTwigEventRenderer implements TwigEventRendererInterface
|
|||
}
|
||||
|
||||
/**
|
||||
* @param array<string> $eventNames
|
||||
* @param non-empty-list<string> $eventNames
|
||||
* @param array<string, mixed> $context
|
||||
*/
|
||||
public function render(array $eventNames, array $context = []): string
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ final class TemplateEventExtension extends AbstractExtension
|
|||
}
|
||||
Assert::notEmpty($eventName);
|
||||
|
||||
/** @var non-empty-list<string> $eventName */
|
||||
$eventName = array_filter($eventName, fn (?string $eventName) => $eventName !== null);
|
||||
|
||||
return $this->templateEventRenderer->render($eventName, $context);
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ interface OrderRepositoryInterface extends RepositoryInterface
|
|||
public function countPlacedOrders(): int;
|
||||
|
||||
/**
|
||||
* @return array|OrderInterface[]
|
||||
* @return array|T[]
|
||||
*/
|
||||
public function findLatest(int $count): array;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue