diff --git a/composer.json b/composer.json index 137ebe6..2ca51cf 100644 --- a/composer.json +++ b/composer.json @@ -30,7 +30,7 @@ "require": { "php": "~8.0.0 || ~8.1.0 || ~8.2.0", "ingenerator/warden-core": "^1.2", - "psr/log": "^1.0" + "psr/log": "^1.0 || ^2.0 || ^3.0" }, "require-dev": { "phpunit/phpunit": "^9.5.5" diff --git a/test/mock/ArrayLogger.php b/test/mock/ArrayLogger.php index bcfc100..3e6fb49 100644 --- a/test/mock/ArrayLogger.php +++ b/test/mock/ArrayLogger.php @@ -12,7 +12,7 @@ class ArrayLogger extends AbstractLogger { protected $logs = []; - public function log($level, $message, array $context = []) + public function log($level, $message, array $context = []): void { $this->logs[] = [$level, $message, $context]; }