Skip to content

Commit

Permalink
Add test case with ThemeCollector
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Jul 15, 2024
1 parent fc93513 commit cbdfa38
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/Collector/ThemeCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\DataCollector\DataCollector;

/**
* @property $data array{used_theme: ?ThemeInterface, used_themes: ThemeInterface[], themes: ThemeInterface[]}
*/
final class ThemeCollector extends DataCollector
{
private ThemeRepositoryInterface $themeRepository;
Expand All @@ -29,15 +33,6 @@ final class ThemeCollector extends DataCollector

private ThemeHierarchyProviderInterface $themeHierarchyProvider;

/**
* @var array
*
* @psalm-var array{used_theme: ?ThemeInterface, used_themes: ThemeInterface[], themes: ThemeInterface[]}
*
* @psalm-suppress NonInvariantDocblockPropertyType
*/
protected $data;

public function __construct(
ThemeRepositoryInterface $themeRepository,
ThemeContextInterface $themeContext,
Expand Down

0 comments on commit cbdfa38

Please sign in to comment.