From 5f8fb0bd6122ae0df249594e0b2615978651d3da Mon Sep 17 00:00:00 2001 From: Hossein Askari Date: Sat, 26 Jun 2021 15:43:35 +0430 Subject: [PATCH] Check app version before passing [command] to Process Symfony Process Does not accept array before Laravel 7 So The app version should be checked --- src/AsyncQueue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AsyncQueue.php b/src/AsyncQueue.php index 3db92f8..63257c3 100644 --- a/src/AsyncQueue.php +++ b/src/AsyncQueue.php @@ -134,7 +134,7 @@ public function startProcess($id) $command = $this->getCommand($id); $cwd = base_path(); - $process = new Process([$command], $cwd); + $process = new Process((int)app()->version() > 6 ? [$command] : $command, $cwd); $process->run(); }