Skip to content

Commit

Permalink
Support PSR log v2 and v3
Browse files Browse the repository at this point in the history
  • Loading branch information
craig410 committed Feb 8, 2024
1 parent a3391fa commit 2eea805
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion test/mock/ArrayLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 2eea805

Please sign in to comment.