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

Fix error_handler return type declaration

This commit is contained in:
Thomas Perez
2019-07-31 22:19:02 +02:00
parent 2e3c369667
commit 4e095f38f4
4 changed files with 11 additions and 1 deletions

View File

@@ -134,9 +134,11 @@ class StreamHandler extends AbstractProcessingHandler
fwrite($stream, (string) $record['formatted']);
}
private function customErrorHandler($code, $msg): void
private function customErrorHandler($code, $msg): bool
{
$this->errorMessage = preg_replace('{^(fopen|mkdir)\(.*?\): }', '', $msg);
return true;
}
private function getDirFromStream(string $stream): ?string