Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
francislavoie authored Jan 21, 2024
1 parent bafdef9 commit e08fd17
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Plugin/SharedLoggerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Vectorface\Auth\Plugin;

use Psr\Log\LoggerTrait as PsrLoggerTrait;
use Stringable;
use Vectorface\Auth\Auth;

/**
Expand All @@ -29,10 +30,10 @@ trait SharedLoggerTrait
* Logs with an arbitrary level, or don't if no logger has been set.
*
* @param mixed $level The log level. A LogLevel::* constant (usually)
* @param string $message The message to log.
* @param Stringable|string $message The message to log.
* @param array $context Further information about the context of the log message.
*/
protected function log($level, $message, array $context = [])
protected function log($level, Stringable|string $message, array $context = [])

Check failure on line 36 in src/Plugin/SharedLoggerTrait.php

View workflow job for this annotation

GitHub Actions / PHP 8.0 on ubuntu-latest

Declaration of Vectorface\Auth\Plugin\SharedLoggerTrait::log($level, Stringable|string $message, array $context = []) must be compatible with Psr\Log\LoggerTrait::log($level, Stringable|string $message, array $context = []): void

Check failure on line 36 in src/Plugin/SharedLoggerTrait.php

View workflow job for this annotation

GitHub Actions / PHP 8.1 on ubuntu-latest

Declaration of Vectorface\Auth\Plugin\SharedLoggerTrait::log($level, Stringable|string $message, array $context = []) must be compatible with Psr\Log\LoggerTrait::log($level, Stringable|string $message, array $context = []): void

Check failure on line 36 in src/Plugin/SharedLoggerTrait.php

View workflow job for this annotation

GitHub Actions / PHP 8.2 on ubuntu-latest

Declaration of Vectorface\Auth\Plugin\SharedLoggerTrait::log($level, Stringable|string $message, array $context = []) must be compatible with Psr\Log\LoggerTrait::log($level, Stringable|string $message, array $context = []): void

Check failure on line 36 in src/Plugin/SharedLoggerTrait.php

View workflow job for this annotation

GitHub Actions / PHP 8.3 on ubuntu-latest

Declaration of Vectorface\Auth\Plugin\SharedLoggerTrait::log($level, Stringable|string $message, array $context = []) must be compatible with Psr\Log\LoggerTrait::log($level, Stringable|string $message, array $context = []): void
{
$logger = null;
if (isset($this->logger)) {
Expand Down

0 comments on commit e08fd17

Please sign in to comment.