From 3606a19b6e54de46cfe5ea2a74e54ed85b82856d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sat, 15 Mar 2025 15:07:26 +0200 Subject: [PATCH] Fix ErrorLogHandler type int: $messageType accepts only SAPI and OS (#1933) --- 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 a38c3f5e..cd28ff6a 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