Skip to content

Commit

Permalink
Changed logger signature to be sf 5.4 compatible (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiesenow authored Oct 9, 2023
1 parent 9adabb6 commit eae98c4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions doc/changelog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 6 additions & 2 deletions src/Logger/TestLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eae98c4

Please sign in to comment.