1 | <?php |
||
22 | trait MakesDeferredPromisesTrait |
||
23 | { |
||
24 | /** |
||
25 | * @var DeferredFactoryInterface |
||
26 | */ |
||
27 | private $deferredFactory; |
||
28 | |||
29 | /** |
||
30 | * @param callable|null $canceller |
||
31 | * |
||
32 | * @return DeferredInterface |
||
33 | */ |
||
34 | protected function createDeferred(callable $canceller = null) |
||
38 | |||
39 | /** |
||
40 | * @param DeferredFactoryInterface $deferredFactory |
||
41 | */ |
||
42 | public function setDeferredFactory($deferredFactory) |
||
46 | |||
47 | /** |
||
48 | * @return DeferredFactoryInterface |
||
49 | */ |
||
50 | public function getDeferredFactory() |
||
60 | |||
61 | /** |
||
62 | * Dependency on MakesPromisesTrait. |
||
63 | * |
||
64 | * @return PromiseFactoryInterface |
||
65 | */ |
||
66 | abstract public function getPromiseFactory(); |
||
67 | } |
||
68 |
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..