Skip to content

Commit

Permalink
add formatted key in ArrayAccess for LogRecord (#1886)
Browse files Browse the repository at this point in the history
since $record['formatted'] is a legal syntax, it should not be flagged by static analysis tools like phpstan
  • Loading branch information
lekoala committed Jun 28, 2024
1 parent b56faa6 commit 4112a18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Monolog/LogRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* 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
{
Expand Down

0 comments on commit 4112a18

Please sign in to comment.