Skip to content

Commit

Permalink
add formatted key in ArrayAccess for LogRecord
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 Apr 19, 2024
1 parent a4471eb commit 0a9fdbf
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 0a9fdbf

Please sign in to comment.