1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-04 12:17:35 +02:00

Fix ErrorLogHandler type int: $messageType accepts only SAPI and OS (#1933)

This commit is contained in:
Elan Ruusamäe
2025-03-15 15:07:26 +02:00
committed by GitHub
parent 353f1db2e4
commit 3606a19b6e

View File

@@ -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