1 | <?php |
||
8 | abstract class Widget implements WidgetInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var \Illuminate\View\View |
||
12 | */ |
||
13 | protected $view; |
||
14 | |||
15 | /** |
||
16 | * @return bool |
||
17 | */ |
||
18 | public function active() |
||
22 | |||
23 | /** |
||
24 | * @return int |
||
25 | */ |
||
26 | public function position() |
||
30 | |||
31 | /** |
||
32 | * @param View $view |
||
33 | */ |
||
34 | public function setInjectableView(View $view) |
||
38 | |||
39 | /** |
||
40 | * @return array |
||
41 | */ |
||
42 | public function toArray() |
||
51 | } |
||
52 |
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.