From 89e5101ecdcdc90ba1e28958f6a95a48f9ad8e0f Mon Sep 17 00:00:00 2001 From: Joop Schilder Date: Wed, 16 Jan 2019 17:17:17 +0100 Subject: [PATCH] Add signal to function signature --- src/Asynchronous.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;