1 | <?php |
||
13 | class Observer |
||
14 | { |
||
15 | |||
16 | /** @var self */ |
||
17 | protected static $instance; |
||
18 | |||
19 | /** @var AbstractListener[] */ |
||
20 | protected static $listener = []; |
||
21 | |||
22 | /** |
||
23 | * Observer constructor (private). |
||
24 | */ |
||
25 | private function __construct() {} |
||
26 | |||
27 | /** |
||
28 | * @return self |
||
29 | */ |
||
30 | public static function instance() |
||
43 | |||
44 | /** |
||
45 | * @param AbstractEventType $eventType |
||
46 | */ |
||
47 | public function trigger(AbstractEventType $eventType) |
||
69 | |||
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..