1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-18 23:26:20 +02:00

Bump phpstan to level 8

This commit is contained in:
Jordi Boggiano
2021-07-04 14:03:55 +02:00
parent 4ef5da80ad
commit 8b5278d8e1
47 changed files with 262 additions and 101 deletions

View File

@@ -79,6 +79,9 @@ class ErrorLogHandler extends AbstractProcessingHandler
}
$lines = preg_split('{[\r\n]+}', (string) $record['formatted']);
if ($lines === false) {
throw new \RuntimeException('Failed to preg_split formatted string: '.preg_last_error().' / '.preg_last_error_msg());
}
foreach ($lines as $line) {
error_log($line, $this->messageType);
}