1 | <?php |
||
11 | trait HasApplication |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * @var Application |
||
16 | */ |
||
17 | protected $application; |
||
18 | |||
19 | /** |
||
20 | * @param Application $application |
||
21 | */ |
||
22 | public function setApplication(Application $application) |
||
26 | |||
27 | /** |
||
28 | * @return Bootstrap |
||
29 | */ |
||
30 | public function getBootstrap() |
||
34 | |||
35 | /** |
||
36 | * @param Bootstrap $bootstrap |
||
37 | */ |
||
38 | public function setBootstrap($bootstrap) |
||
42 | } |
||
43 |
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.