diff --git a/src/Asynchronous.php b/src/Asynchronous.php index 266098f..45e12f5 100644 --- a/src/Asynchronous.php +++ b/src/Asynchronous.php @@ -239,7 +239,7 @@ class Asynchronous * The signal handler */ foreach ([SIGINT, SIGTERM] as $SIGNAL) - pcntl_signal($SIGNAL, function () use (&$instance) { + pcntl_signal($SIGNAL, function ($signal) use (&$instance) { if ($instance->isChild) return;