From e289293a7c172e066c9fabbcd8da8f0d2c7abf91 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 14 Mar 2022 13:03:53 +0100 Subject: [PATCH] PHPStan fixes --- phpstan.neon.dist | 3 --- src/Monolog/LogRecord.php | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 275089a0..961f7ce4 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -35,6 +35,3 @@ parameters: - '#::popProcessor\(\) should return callable#' - '#Parameter \#1 \$ of callable \(callable\(Monolog\\Handler\\Record\): Monolog\\Handler\\Record\)#' - '#is incompatible with native type array.#' - - # can be removed when https://github.com/rollbar/rollbar-php/pull/536 will be merged - - '#Rollbar\\RollbarLogger#' diff --git a/src/Monolog/LogRecord.php b/src/Monolog/LogRecord.php index 81fccb40..702807d7 100644 --- a/src/Monolog/LogRecord.php +++ b/src/Monolog/LogRecord.php @@ -22,10 +22,10 @@ use ArrayAccess; * Do not rely on this interface for other purposes, and do not implement it. * * @author Jordi Boggiano - * @template-implements \ArrayAccess<'message'|'level'|'context'|'level_name'|'channel'|'datetime'|'extra'|'formatted', mixed> + * @template-extends \ArrayAccess<'message'|'level'|'context'|'level_name'|'channel'|'datetime'|'extra'|'formatted', mixed> * @phpstan-import-type Record from Logger */ -interface LogRecord implements \ArrayAccess +interface LogRecord extends \ArrayAccess { /** * @phpstan-return Record