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