1 | <?php |
||
15 | trait DeferredEventHandlers { |
||
16 | protected $DefEvHandlersUsed = false; |
||
17 | |||
18 | /** |
||
19 | * @param string $event |
||
20 | * @throws UndefinedEventCalledException |
||
21 | * @return mixed |
||
22 | */ |
||
23 | public function __get($event) { |
||
40 | |||
41 | /** |
||
42 | * Called when first deferred event is used |
||
43 | * @return void |
||
44 | */ |
||
45 | protected function firstDeferredEventUsed() {} |
||
46 | |||
47 | /** |
||
48 | * Cleans up events |
||
49 | * @return void |
||
50 | */ |
||
51 | public function cleanupDeferredEventHandlers() { |
||
59 | |||
60 | /** |
||
61 | * @param string $method Method name |
||
62 | * @param array $args Arguments |
||
63 | * @throws UndefinedMethodCalled |
||
64 | * @return mixed |
||
65 | */ |
||
66 | public function __call($method, $args) { |
||
76 | } |
||
77 |
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..