1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 13:16:39 +02:00
* Update CI

* Fix deprecation warning

* Fix types
This commit is contained in:
Jordi Boggiano
2024-08-27 09:31:25 +02:00
committed by GitHub
parent 884aa47a05
commit 23560e32b1
6 changed files with 47 additions and 60 deletions

View File

@@ -185,7 +185,7 @@ class SignalHandlerTest extends TestCase
$logger = new Logger('test', array($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);