Преглед на файлове

add formatted key in ArrayAccess for LogRecord (#1886)

since $record['formatted'] is a legal syntax, it should not be flagged by static analysis tools like phpstan
Thomas Portelange преди 1 година
родител
ревизия
4112a1880b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/Monolog/LogRecord.php

+ 1 - 1
src/Monolog/LogRecord.php

@@ -17,7 +17,7 @@ use ArrayAccess;
  * Monolog log record
  * Monolog log record
  *
  *
  * @author Jordi Boggiano <j.boggiano@seld.be>
  * @author Jordi Boggiano <j.boggiano@seld.be>
- * @template-implements ArrayAccess<'message'|'level'|'context'|'level_name'|'channel'|'datetime'|'extra', int|string|\DateTimeImmutable|array<mixed>>
+ * @template-implements ArrayAccess<'message'|'level'|'context'|'level_name'|'channel'|'datetime'|'extra'|'formatted', int|string|\DateTimeImmutable|array<mixed>>
  */
  */
 class LogRecord implements ArrayAccess
 class LogRecord implements ArrayAccess
 {
 {