1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-11 23:54:04 +02:00

Merge branch '2.x'

This commit is contained in:
Jordi Boggiano
2024-08-27 09:42:11 +02:00
5 changed files with 40 additions and 60 deletions

View File

@@ -186,7 +186,7 @@ class SignalHandlerTest extends TestCase
$logger = new Logger('test', [$handler = new TestHandler]);
$errHandler = new SignalHandler($logger);
$previousCalled = 0;
pcntl_signal(SIGURG, function ($signo, array $siginfo = null) use (&$previousCalled) {
pcntl_signal(SIGURG, function ($signo, ?array $siginfo = null) use (&$previousCalled) {
++$previousCalled;
});
$errHandler->registerSignalHandler(SIGURG, LogLevel::INFO, $callPrevious, false, false);