Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public static function instance() |
||
31 | { |
||
32 | if (!self::$instance) { |
||
33 | |||
34 | /** @var Config $config */ |
||
35 | $config = ServiceLocator::instance()->get(Config::class); |
||
36 | self::$listener = $config->get('eventListener'); |
||
|
|||
37 | self::$instance = new self(); |
||
38 | |||
39 | } |
||
40 | |||
41 | return self::$instance; |
||
42 | } |
||
43 | |||
70 | } |
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..