1 | <?php |
||
13 | class AsyncCall |
||
14 | { |
||
15 | const CONSOLE_EXECUTE = 'php ' . __DIR__ . '/../../bin/console app:run-child-process '; |
||
16 | |||
17 | /** |
||
18 | * @var bool |
||
19 | */ |
||
20 | private static $shutdownFunctionRegistered = false; |
||
21 | /** |
||
22 | * @var AsyncProcess[] |
||
23 | */ |
||
24 | private static $processList = []; |
||
25 | /** |
||
26 | * @var Serializer |
||
27 | */ |
||
28 | private static $serializer; |
||
29 | /** |
||
30 | * @var int |
||
31 | */ |
||
32 | private static $processesLimit = 0; |
||
33 | |||
34 | /** |
||
35 | * @param $processesLimit |
||
36 | * @throws \Symfony\Component\Console\Exception\InvalidArgumentException |
||
37 | */ |
||
38 | public static function setProcessLimit($processesLimit) |
||
45 | |||
46 | /** |
||
47 | * @param callable $job |
||
48 | * @param callable $callback |
||
49 | * @param callable $onError |
||
50 | * @param float $timeout |
||
51 | * @param float $idleTimeout |
||
52 | * @throws \Symfony\Component\Process\Exception\InvalidArgumentException |
||
53 | * @throws \Symfony\Component\Process\Exception\RuntimeException |
||
54 | * @throws \Symfony\Component\Process\Exception\LogicException |
||
55 | * @throws \RuntimeException |
||
56 | */ |
||
57 | public static function run( |
||
83 | |||
84 | private static function registerShutdownFunction() |
||
95 | |||
96 | /** |
||
97 | * @param int $maxProcessToWait |
||
98 | */ |
||
99 | private static function waitForProcessesToFinish($maxProcessToWait = 0) |
||
119 | } |
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: