1 | <?php |
||
20 | class RedisMutex implements MutexInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var Client |
||
24 | */ |
||
25 | private $redis; |
||
26 | |||
27 | /** |
||
28 | * Constructor class. |
||
29 | * |
||
30 | * @param ClientInterface $redis Instance of redis client. |
||
31 | */ |
||
32 | public function __construct(ClientInterface $redis) |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | public function acquire($key, $ttl) |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public function release($key) |
||
62 | } |
||
63 |
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..