1 | <?php |
||
10 | class StaticManager |
||
11 | { |
||
12 | /** @var CollectionInterface[] */ |
||
13 | protected $collections; |
||
14 | /** @var PackageInterface[] */ |
||
15 | protected $packages = []; |
||
16 | 10 | ||
17 | public function __construct(CollectionInterface $emptyCollection) |
||
25 | 3 | ||
26 | public function getCssSet(): CollectionInterface |
||
30 | 3 | ||
31 | public function getJsHeaderSet(): CollectionInterface |
||
35 | 3 | ||
36 | public function getJsFooterSet(): CollectionInterface |
||
40 | 2 | ||
41 | public function drawHeaderScripts(): string |
||
46 | 2 | ||
47 | public function drawFooterScripts(): string |
||
52 | 4 | ||
53 | protected function drawScripts(CollectionInterface $collection): string |
||
66 | 2 | ||
67 | 2 | protected function convertToAttributesString(array $item): string |
|
73 | |||
74 | 2 | public function drawStyles(): string |
|
93 | |||
94 | 1 | /** |
|
95 | * @param string|array $item |
||
96 | * @param string $defaultAttr |
||
97 | * @return array |
||
98 | */ |
||
99 | protected function prepareItem($item, $defaultAttr = 'src'): array |
||
103 | |||
104 | public function setPackage(string $name, PackageInterface $package) |
||
109 | |||
110 | /** |
||
111 | * @param string $name |
||
112 | * @return PackageInterface |
||
113 | * @throws NotFoundKeyException |
||
114 | */ |
||
115 | public function getPackage(string $name): PackageInterface |
||
123 | } |
||
124 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..