1 | <?php |
||
23 | class Shop |
||
24 | { |
||
25 | /** |
||
26 | * @var \Aimeos\Shop\Base\Aimeos |
||
27 | * @Flow\Inject |
||
28 | */ |
||
29 | protected $aimeos; |
||
30 | |||
31 | /** |
||
32 | * @var \Aimeos\Shop\Base\Context |
||
33 | * @Flow\Inject |
||
34 | */ |
||
35 | protected $context; |
||
36 | |||
37 | /** |
||
38 | * @var \Aimeos\Shop\Base\View |
||
39 | * @Flow\Inject |
||
40 | */ |
||
41 | protected $view; |
||
42 | |||
43 | /** |
||
44 | * @var \Neos\Flow\Mvc\Routing\UriBuilder |
||
45 | * @Flow\Inject |
||
46 | */ |
||
47 | protected $uriBuilder; |
||
48 | |||
49 | /** |
||
50 | * @var array |
||
51 | */ |
||
52 | private $settings; |
||
53 | |||
54 | |||
55 | /** |
||
56 | * Returns the body and header sections created by the clients configured for the given page name. |
||
57 | * |
||
58 | * @param \Neos\Flow\Mvc\RequestInterface $request Request object |
||
59 | * @param string $pageName Name of the configured page |
||
60 | * @return array Associative list with body and header output separated by client name |
||
61 | */ |
||
62 | public function get( \Neos\Flow\Mvc\RequestInterface $request, $pageName ) |
||
92 | |||
93 | |||
94 | /** |
||
95 | * Inject the settings |
||
96 | * |
||
97 | * @param array $settings |
||
98 | * @return void |
||
99 | */ |
||
100 | public function injectSettings( array $settings ) |
||
104 | } |
||
105 |
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.