Skip to content

Commit 2b9cc1d

Browse files
committed
Implement psr/log 3
Signed-off-by: Alexander M. Turek <me@derrabus.de>
1 parent 42121ae commit 2b9cc1d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Log/Logger.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,8 @@ public function __construct(string $minLevel = null, $output = null, callable $f
6565

6666
/**
6767
* {@inheritdoc}
68-
*
69-
* @return void
7068
*/
71-
public function log($level, $message, array $context = [])
69+
public function log($level, $message, array $context = []): void
7270
{
7371
if (!isset(self::LEVELS[$level])) {
7472
throw new InvalidArgumentException(sprintf('The log level "%s" does not exist.', $level));

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"symfony/http-client-contracts": "^1.1|^2.0|^3.0",
2323
"symfony/http-foundation": "^5.4|^6.0",
2424
"symfony/polyfill-ctype": "^1.8",
25-
"psr/log": "^1|^2"
25+
"psr/log": "^1|^2|^3"
2626
},
2727
"require-dev": {
2828
"symfony/browser-kit": "^5.4|^6.0",
@@ -42,7 +42,7 @@
4242
"twig/twig": "^2.13|^3.0.4"
4343
},
4444
"provide": {
45-
"psr/log-implementation": "1.0|2.0"
45+
"psr/log-implementation": "1.0|2.0|3.0"
4646
},
4747
"conflict": {
4848
"symfony/browser-kit": "<5.4",

0 commit comments

Comments
 (0)