瀏覽代碼

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

Elan Ruusamäe 10 月之前
父節點
當前提交
3606a19b6e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Monolog/Handler/ErrorLogHandler.php

+ 2 - 2
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