Add signal to function signature

This commit is contained in:
Joop Schilder 2019-01-16 17:17:17 +01:00
parent d40f5d940a
commit 89e5101ecd

View File

@ -239,7 +239,7 @@ class Asynchronous
* The signal handler * The signal handler
*/ */
foreach ([SIGINT, SIGTERM] as $SIGNAL) foreach ([SIGINT, SIGTERM] as $SIGNAL)
pcntl_signal($SIGNAL, function () use (&$instance) { pcntl_signal($SIGNAL, function ($signal) use (&$instance) {
if ($instance->isChild) if ($instance->isChild)
return; return;