8000 [Console] Restore psr/log >= 3.0 conflict · symfony/symfony@5c65796 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5c65796

Browse files
committed
[Console] Restore psr/log >= 3.0 conflict
1 parent a74fdac commit 5c65796

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/Symfony/Component/Console/Logger/ConsoleLogger.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717
use Symfony\Component\Console\Output\ConsoleOutputInterface;
1818
use Symfony\Component\Console\Output\OutputInterface;
1919

20-
if ((new \ReflectionMethod(AbstractLogger::class, 'log'))->hasReturnType()) {
21-
throw new \RuntimeException(sprintf('The "%s" logger is not compatible with psr/log >= 3.0. Try running "composer require psr/log:^2.".', ConsoleLogger::class));
22-
}
23-
2420
/**
2521
* PSR-3 compliant console logger.
2622
*

src/Symfony/Component/Console/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"psr/log": "For using the console logger"
4444
},
4545
"conflict": {
46+
"psr/log": ">=3",
4647
"symfony/dependency-injection": "<4.4",
4748
"symfony/dotenv": "<5.1",
4849
"symfony/event-dispatcher": "<4.4",

0 commit comments

Comments
 (0)
0