1 | <?php |
||
9 | class StaticManager |
||
10 | { |
||
11 | /** @var CollectionInterface[] */ |
||
12 | protected $collections; |
||
13 | /** @var PackageInterface[] */ |
||
14 | protected $packages = []; |
||
15 | |||
16 | 10 | public function __construct(CollectionInterface $emptyCollection) |
|
24 | |||
25 | 3 | public function getCssSet() : CollectionInterface |
|
29 | |||
30 | 3 | public function getJsHeaderSet() : CollectionInterface |
|
34 | |||
35 | 3 | public function getJsFooterSet() : CollectionInterface |
|
39 | |||
40 | 2 | public function drawHeaderScripts() : string |
|
45 | |||
46 | 2 | public function drawFooterScripts() : string |
|
51 | |||
52 | 4 | protected function drawScripts(CollectionInterface $collection) : string |
|
63 | |||
64 | 2 | public function drawStyles() : string |
|
76 | |||
77 | 1 | public function setPackage(string $name, PackageInterface $package) |
|
82 | |||
83 | /** |
||
84 | * @param string $name |
||
85 | * @return PackageInterface |
||
86 | * @throws NotFoundKeyException |
||
87 | */ |
||
88 | 2 | public function getPackage(string $name) : PackageInterface |
|
96 | } |
||
97 |
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..