1 | <?php |
||
20 | class Process |
||
21 | { |
||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | private static $_inWork = []; |
||
26 | |||
27 | /** |
||
28 | * @var |
||
29 | */ |
||
30 | public $yiiAlias; |
||
31 | |||
32 | /** |
||
33 | * @return int |
||
34 | */ |
||
35 | public function getParallelEnv(): int |
||
39 | |||
40 | /** |
||
41 | * Run process. If more then limit then wait and try run process on more time. |
||
42 | * |
||
43 | * @param string $handle |
||
44 | * @param array $data |
||
45 | * @param string $id |
||
46 | * |
||
47 | * @return SymfonyProcess |
||
48 | */ |
||
49 | public function run(string $handle, array $data, string $id) |
||
61 | |||
62 | /** |
||
63 | * In work processes |
||
64 | */ |
||
65 | private function inWork() |
||
73 | |||
74 | /** |
||
75 | * Create cmd process and push to queue. |
||
76 | * |
||
77 | * @param string $handle |
||
78 | * @param array $data |
||
79 | * @param string $id |
||
80 | * |
||
81 | * @return SymfonyProcess |
||
82 | */ |
||
83 | private function push(string $handle, array $data, string $id): SymfonyProcess |
||
103 | } |
||
104 |
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: