From a990617de27700df73841f6ccaff46e09ba9ec3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20R=C3=BCsweg?= Date: Tue, 7 Feb 2023 15:56:05 +0100 Subject: [PATCH] Fix missing variable use in anonymous function (#1244) --- src/Console/PurgeCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/PurgeCommand.php b/src/Console/PurgeCommand.php index dd791a4b..d97ee144 100644 --- a/src/Console/PurgeCommand.php +++ b/src/Console/PurgeCommand.php @@ -96,7 +96,7 @@ public function purge($master, $signal = SIGTERM) $master, $this->supervisors->longestActiveTimeout() ); - collect($expired)->each(function ($processId) use ($master) { + collect($expired)->each(function ($processId) use ($master, $signal) { $this->comment("Killing Process: {$processId}"); exec("kill -s {$signal} {$processId}");