Skip to content

Commit 8bfd97b

Browse files
committed
Permit psr/log 2.x and 3.x for PHP 8.0+
1 parent 5b03aa4 commit 8bfd97b

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
@@ -20,7 +20,7 @@
2020
},
2121
"require-dev": {
2222
"doctrine/coding-standard": "^11.1",
23-
"psr/log": "^1.1.4",
23+
"psr/log": "^1.1.4|^2|^3",
2424
"rector/rector": "^0.16.0",
2525
"squizlabs/php_codesniffer": "^3.7",
2626
"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)