1 | <?php |
||
18 | final class Configuration implements ConfigurationInterface |
||
19 | { |
||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | public function getConfigTreeBuilder() |
||
39 | |||
40 | /** |
||
41 | * @param ArrayNodeDefinition $node |
||
42 | */ |
||
43 | private function addCacheSection(ArrayNodeDefinition $node): void |
||
56 | |||
57 | /** |
||
58 | * @param ArrayNodeDefinition $node |
||
59 | */ |
||
60 | private function addStaticUrlsSection(ArrayNodeDefinition $node): void |
||
77 | } |
||
78 |
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass.
Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.