Просмотр исходного кода

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 год назад
Родитель
Сommit
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
  *
  * @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
 {