1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-07 05:36:45 +02:00

PHPStan fixes

This commit is contained in:
Jordi Boggiano
2022-03-14 13:03:53 +01:00
parent 4b22d380d0
commit e289293a7c
2 changed files with 2 additions and 5 deletions

View File

@@ -35,6 +35,3 @@ parameters:
- '#::popProcessor\(\) should return callable#' - '#::popProcessor\(\) should return callable#'
- '#Parameter \#1 \$ of callable \(callable\(Monolog\\Handler\\Record\): Monolog\\Handler\\Record\)#' - '#Parameter \#1 \$ of callable \(callable\(Monolog\\Handler\\Record\): Monolog\\Handler\\Record\)#'
- '#is incompatible with native type array.#' - '#is incompatible with native type array.#'
# can be removed when https://github.com/rollbar/rollbar-php/pull/536 will be merged
- '#Rollbar\\RollbarLogger#'

View File

@@ -22,10 +22,10 @@ use ArrayAccess;
* Do not rely on this interface for other purposes, and do not implement it. * Do not rely on this interface for other purposes, and do not implement it.
* *
* @author Jordi Boggiano <j.boggiano@seld.be> * @author Jordi Boggiano <j.boggiano@seld.be>
* @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 * @phpstan-import-type Record from Logger
*/ */
interface LogRecord implements \ArrayAccess interface LogRecord extends \ArrayAccess
{ {
/** /**
* @phpstan-return Record * @phpstan-return Record