Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public static function instance() |
||
33 | { |
||
34 | if (!self::$instance) { |
||
35 | |||
36 | /** @var Config $config */ |
||
37 | $config = ServiceLocator::instance()->get(Config::class); |
||
38 | self::$listener = $config->get('eventListener'); |
||
|
|||
39 | self::$instance = new self(); |
||
40 | |||
41 | } |
||
42 | |||
43 | return self::$instance; |
||
44 | } |
||
45 | |||
74 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..