Skip to content

Commit 6d08297

Browse files
committed
Permit psr/log 2.x and 3.x for PHP 8.0+
1 parent 70e5401 commit 6d08297

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"require-dev": {
2323
"doctrine/coding-standard": "^11.1",
2424
"phpbench/phpbench": "^1.2",
25-
"psr/log": "^1.1.4",
25+
"psr/log": "^1.1.4|^2|^3",
2626
"rector/rector": "^0.16.0",
2727
"squizlabs/php_codesniffer": "^3.7",
2828
"symfony/phpunit-bridge": "^5.2",

tests/PsrLogAdapterTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ private function createTestPsrLogger(): LoggerInterface
6060
return new class extends AbstractLogger {
6161
public $logs = [];
6262

63+
/* Note: parameter type hints are omitted for compatibility with
64+
* psr/log 1.1.4 and PHP 7.4. */
6365
public function log($level, $message, array $context = []): void
6466
{
6567
$this->logs[] = func_get_args();

0 commit comments

Comments
 (0)