1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-22 17:16:18 +02:00

Added some type hints

This commit is contained in:
Jordi Boggiano
2018-11-04 19:47:01 +01:00
parent c5bba4ac64
commit 36b767dc02
3 changed files with 5 additions and 5 deletions

View File

@@ -33,7 +33,7 @@ class SignalHandler
$this->logger = $logger;
}
public function registerSignalHandler($signo, $level = LogLevel::CRITICAL, $callPrevious = true, $restartSyscalls = true, $async = true)
public function registerSignalHandler($signo, $level = LogLevel::CRITICAL, bool $callPrevious = true, bool $restartSyscalls = true, bool $async = true): self
{
if (!extension_loaded('pcntl') || !function_exists('pcntl_signal')) {
return $this;