Skip to content

Commit

Permalink
fix typing for PSR-3 logger interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Hectorhammett committed Sep 5, 2024
1 parent dbce7ca commit 6370690
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Logging/StdOutLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ public function debug(string|Stringable $message, array $context = []): void
$this->log(LogLevel::DEBUG, $message);
}

/**
* @param string $level
* @param string|Stringable $message
* @param array<mixed> $context
*/
public function log($level, string|Stringable $message, array $context = []): void
{
if ($this->getLevelMap($level) < $this->level) {
Expand Down

0 comments on commit 6370690

Please sign in to comment.