1 | <?php |
||
20 | class FormElementContext extends ContextAbstract |
||
21 | { |
||
22 | /** |
||
23 | * @var FormElement |
||
24 | */ |
||
25 | protected $element; |
||
26 | |||
27 | /** |
||
28 | * @var FormInterface |
||
29 | */ |
||
30 | protected $form; |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | public function hasTemplateName() |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | public function getTemplateName() |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function getData() |
||
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | public function setElement(Element $element) |
||
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | protected function createEvent(Request $request) |
||
82 | |||
83 | /** |
||
84 | * @return string |
||
85 | */ |
||
86 | protected function getSupportedRoute() |
||
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | */ |
||
94 | protected function supportsElement(Element $element) |
||
98 | |||
99 | /** |
||
100 | * @param Request $request |
||
101 | * @return object|null |
||
102 | */ |
||
103 | private function getObject(Request $request) |
||
118 | |||
119 | /** |
||
120 | * @throws NotFoundHttpException |
||
121 | */ |
||
122 | private function checkAllowAddOption() |
||
133 | } |
||
134 |
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.