You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using your package version 4.0.0 with Laravel 10. I followed the instructions for installation of the package and I have both PCNTL and POSIX extensions installed.
I runned the eg. code below
for ($i = 1; $i < 20; $i++) {
AsyncFacade::run(function () use ($i) {
sleep(1);
return$i;
});
}
And I got this error:
Declaration of VXM\Async\Runtime\ParentRuntime::createProcess($task, ?int $outputLength = null, ?string $binary = 'php'): Spatie\Async\Process\Runnable must be compatible with Spatie\Async\Runtime\ParentRuntime::createProcess($task, ?int $outputLength = null, ?string $binary = 'php', ?int $max_input_size = 100000): Spatie\Async\Process\Runnable
at vendor/vxm/laravel-async/src/Runtime/ParentRuntime.php:2420▕ * @since 1.0.021▕ */
22▕ class ParentRuntime extends BaseParentRuntime
23▕ {
➜ 24▕ publicstaticfunction createProcess($task, ?int$outputLength = null, ?string$binary = 'php'): Runnable25▕ {
26▕ $runnable = parent::createProcess($task, $outputLength, $binary);
27▕
28▕ if ($runnableinstanceof SynchronousProcess) {
The text was updated successfully, but these errors were encountered:
peteradeojo
added a commit
to peteradeojo/laravel-async
that referenced
this issue
Sep 27, 2023
Hi,
I'm using your package version 4.0.0 with Laravel 10. I followed the instructions for installation of the package and I have both PCNTL and POSIX extensions installed.
I runned the eg. code below
And I got this error:
The text was updated successfully, but these errors were encountered: