diff --git a/doc/changelog.md b/doc/changelog.md index 099af29..a00ca37 100644 --- a/doc/changelog.md +++ b/doc/changelog.md @@ -1,5 +1,11 @@ # Changelog +## v1.5.2 +* Fix TestLogger to be compatible with symfony 5.4 LTS. + +## v1.5.1 +* Bugfix: kernel not injected into JsonContext + ## v1.5.0 ### Restructuring BrowserContext diff --git a/src/Logger/TestLogger.php b/src/Logger/TestLogger.php index d6b1534..48de4c3 100644 --- a/src/Logger/TestLogger.php +++ b/src/Logger/TestLogger.php @@ -17,8 +17,12 @@ public static function reset(): void self::$logs = []; } - /** @param array $context */ - public function log(mixed $level, \Stringable|string $message, array $context = []): void + /** + * @param mixed $level + * @param \Stringable|string $message + * @param mixed[] $context + */ + public function log($level, $message, array $context = []): void { if (!is_string($level)) { $level = LogLevel::ERROR;