1 | <?php |
||
11 | class LazyPromise implements ExtendedPromiseInterface, CancellablePromiseInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var callable |
||
15 | */ |
||
16 | private $factory; |
||
17 | |||
18 | /** |
||
19 | * @var Promise |
||
20 | */ |
||
21 | private $promise; |
||
22 | |||
23 | 118 | public function __construct(callable $factory) |
|
27 | |||
28 | 50 | public function then( |
|
35 | |||
36 | 28 | public function done(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) |
|
40 | |||
41 | 7 | public function otherwise(callable $onRejected) : ExtendedPromiseInterface |
|
45 | |||
46 | 22 | public function always(callable $onFulfilledOrRejected) : ExtendedPromiseInterface |
|
50 | |||
51 | 2 | public function progress(callable $onProgress) : ExtendedPromiseInterface |
|
55 | |||
56 | 15 | public function cancel() |
|
60 | |||
61 | 117 | private function promise() |
|
73 | } |
||
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..