From 0de95fe40da07df4313e7d1ccf55a221f68f0cfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 3 Jan 2025 15:50:50 +0200 Subject: [PATCH] Fix ErrorLogHandler type int: $messageType accepts only SAPI and OS --- src/Monolog/Handler/ErrorLogHandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Monolog/Handler/ErrorLogHandler.php b/src/Monolog/Handler/ErrorLogHandler.php index a38c3f5e0..cd28ff6ac 100644 --- a/src/Monolog/Handler/ErrorLogHandler.php +++ b/src/Monolog/Handler/ErrorLogHandler.php @@ -27,12 +27,12 @@ class ErrorLogHandler extends AbstractProcessingHandler public const OPERATING_SYSTEM = 0; public const SAPI = 4; - /** @var 0|1|3|4 */ + /** @var 0|4 */ protected int $messageType; protected bool $expandNewlines; /** - * @param 0|1|3|4 $messageType Says where the error should go. + * @param 0|4 $messageType Says where the error should go. * @param bool $expandNewlines If set to true, newlines in the message will be expanded to be take multiple log entries * * @throws \InvalidArgumentException If an unsupported message type is set