1 | <?php |
||
13 | class SwooleSequenceResolver implements SequenceResolver |
||
14 | { |
||
15 | /** |
||
16 | * The las ttimestamp. |
||
17 | * |
||
18 | * @var null |
||
19 | */ |
||
20 | protected $lastTimeStamp = -1; |
||
21 | |||
22 | /** |
||
23 | * The sequence. |
||
24 | * |
||
25 | * @var int |
||
26 | */ |
||
27 | protected $sequence = 0; |
||
28 | |||
29 | /** |
||
30 | * The swoole lock. |
||
31 | * |
||
32 | * @var mixed |
||
33 | */ |
||
34 | protected $lock; |
||
35 | |||
36 | /** |
||
37 | * The cycle count. |
||
38 | * |
||
39 | * @var int |
||
40 | */ |
||
41 | protected $count = 0; |
||
42 | |||
43 | /** |
||
44 | * Init swoole lock. |
||
45 | */ |
||
46 | public function __construct() |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function sequence(int $currentTime) |
||
82 | } |
||
83 |
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..