1 | <?php |
||
21 | abstract class AbstractRenderer implements RendererInterface, TranslatorAwareInterface |
||
22 | { |
||
23 | use TranslatorAwareTrait; |
||
24 | |||
25 | /** |
||
26 | * @var \Zend\Mvc\Router\RouteInterface |
||
27 | */ |
||
28 | protected $httpRouter; |
||
29 | |||
30 | /** |
||
31 | * @var AbstractOptions |
||
32 | */ |
||
33 | protected $defaultOptions = array(); |
||
34 | |||
35 | /** |
||
36 | * @var Options |
||
37 | */ |
||
38 | protected $options = null; |
||
39 | |||
40 | /** |
||
41 | * @var FormManager |
||
42 | */ |
||
43 | protected $formManager; |
||
44 | |||
45 | /** |
||
46 | * @return RouteInterface |
||
47 | */ |
||
48 | public function getHttpRouter() |
||
52 | |||
53 | /** |
||
54 | * @param RouteInterface $httpRouter |
||
55 | * @return void |
||
56 | */ |
||
57 | public function setHttpRouter(RouteInterface $httpRouter) |
||
61 | |||
62 | /** |
||
63 | * @return AbstractOptions |
||
64 | */ |
||
65 | public function getOptions() |
||
69 | |||
70 | /** |
||
71 | * @param array $options |
||
72 | */ |
||
73 | public function setOptions(array $options = array()) |
||
87 | |||
88 | /** |
||
89 | * @param AbstractOptions $options |
||
90 | */ |
||
91 | public function setDefaultOptions(AbstractOptions $options = null) |
||
95 | |||
96 | /** |
||
97 | * @return FormManager |
||
98 | */ |
||
99 | public function getFormManager() |
||
103 | |||
104 | /** |
||
105 | * @param FormManager $formManager |
||
106 | */ |
||
107 | public function setFormManager(FormManager $formManager) |
||
111 | } |
||
112 |
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.