1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-07-31 10:20:14 +02:00

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
This commit is contained in:
Thomas Portelange
2024-06-28 11:05:04 +02:00
committed by GitHub
parent b56faa67a0
commit 4112a1880b

View File

@@ -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
{