1 | <?php |
||
24 | class MutexFactory |
||
25 | { |
||
26 | /** |
||
27 | * @var StorageFactory |
||
28 | */ |
||
29 | private $storageFactory; |
||
30 | |||
31 | /** |
||
32 | * Constructor class. |
||
33 | * |
||
34 | * @param StorageFactory $storageFactory |
||
35 | */ |
||
36 | public function __construct(StorageFactoryInterface $storageFactory) |
||
40 | |||
41 | /** |
||
42 | * Returns a mutex. |
||
43 | * |
||
44 | * @return MutexInterface |
||
45 | */ |
||
46 | public function getMutex() |
||
56 | } |
||
57 |
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..