1 | <?php |
||
11 | class Process |
||
12 | { |
||
13 | /** |
||
14 | * @var LoopInterface |
||
15 | */ |
||
16 | protected $loop; |
||
17 | |||
18 | /** |
||
19 | * @var Messenger |
||
20 | */ |
||
21 | protected $messenger; |
||
22 | |||
23 | /** |
||
24 | * @param LoopInterface $loop |
||
25 | * @param Messenger $messenger |
||
26 | * @return Process |
||
27 | */ |
||
28 | 1 | public static function create(LoopInterface $loop, Messenger $messenger) |
|
45 | |||
46 | /** |
||
47 | * Process constructor. |
||
48 | * @param LoopInterface $loop |
||
49 | * @param Messenger $messenger |
||
50 | */ |
||
51 | 2 | protected function __construct(LoopInterface $loop, Messenger $messenger) |
|
69 | |||
70 | /** |
||
71 | * @param string $className |
||
72 | */ |
||
73 | 1 | protected function registerClass($className) |
|
83 | |||
84 | protected function deregisterRpc() |
||
90 | } |
||
91 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: