1 | <?php |
||
19 | abstract class AbstractRenderer implements RendererInterface, TranslatorAwareInterface |
||
20 | { |
||
21 | use TranslatorAwareTrait; |
||
22 | |||
23 | /** |
||
24 | * @var \Zend\Mvc\Router\RouteInterface |
||
25 | */ |
||
26 | protected $httpRouter; |
||
27 | |||
28 | /** |
||
29 | * @var AbstractOptions |
||
30 | */ |
||
31 | protected $defaultOptions = []; |
||
32 | |||
33 | /** |
||
34 | * @var Options |
||
35 | */ |
||
36 | protected $options = null; |
||
37 | |||
38 | /** |
||
39 | * @var FormManager |
||
40 | */ |
||
41 | protected $formManager; |
||
42 | |||
43 | /** |
||
44 | * @return RouteInterface |
||
45 | */ |
||
46 | public function getHttpRouter() |
||
50 | |||
51 | /** |
||
52 | * @param RouteInterface $httpRouter |
||
53 | * |
||
54 | * @return void |
||
55 | */ |
||
56 | public function setHttpRouter(RouteInterface $httpRouter) |
||
60 | |||
61 | /** |
||
62 | * @return AbstractOptions |
||
63 | */ |
||
64 | public function getOptions() |
||
68 | |||
69 | /** |
||
70 | * @param array $options |
||
71 | */ |
||
72 | public function setOptions(array $options = []) |
||
86 | |||
87 | /** |
||
88 | * @param AbstractOptions $options |
||
89 | */ |
||
90 | public function setDefaultOptions(AbstractOptions $options = null) |
||
94 | |||
95 | /** |
||
96 | * @return FormManager |
||
97 | */ |
||
98 | public function getFormManager() |
||
102 | |||
103 | /** |
||
104 | * @param FormManager $formManager |
||
105 | */ |
||
106 | public function setFormManager(FormManager $formManager) |
||
110 | } |
||
111 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.