1 | <?php |
||
6 | abstract class AbstractQueue |
||
7 | { |
||
8 | /** @var int */ |
||
9 | protected $ownerPid; |
||
10 | |||
11 | /** @var \Ackintosh\Snidel\IpcKey */ |
||
12 | protected $ipcKey; |
||
13 | |||
14 | /** @var \Ackintosh\Snidel\Semaphore */ |
||
15 | protected $semaphore; |
||
16 | |||
17 | /** @var resource */ |
||
18 | protected $id; |
||
19 | |||
20 | /** @var array */ |
||
21 | protected $stat; |
||
22 | |||
23 | /** @var int */ |
||
24 | protected $queuedCount = 0; |
||
25 | |||
26 | /** @var int */ |
||
27 | protected $dequeuedCount = 0; |
||
28 | |||
29 | public function __construct(Config $config) |
||
37 | |||
38 | /** |
||
39 | * @param string $message |
||
40 | */ |
||
41 | protected function sendMessage($message) |
||
45 | |||
46 | /** |
||
47 | * @return string |
||
48 | * @throws \RuntimeException |
||
49 | */ |
||
50 | protected function receiveMessage() |
||
62 | |||
63 | /** |
||
64 | * @param string $message |
||
65 | * @return bool |
||
66 | */ |
||
67 | protected function isExceedsLimit($message) |
||
71 | |||
72 | /** |
||
73 | * @return int |
||
74 | */ |
||
75 | public function queuedCount() |
||
79 | |||
80 | /** |
||
81 | * @return int |
||
82 | */ |
||
83 | public function dequeuedCount() |
||
87 | |||
88 | /** |
||
89 | * @return bool |
||
90 | */ |
||
91 | public function delete() |
||
96 | |||
97 | public function __destruct() |
||
103 | } |
||
104 |
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..