8000 minor #43908 [Console] Restore psr/log >= 3.0 conflict (fancyweb) · symfony/symfony@175e3f7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 175e3f7

Browse files
minor #43908 [Console] Restore psr/log >= 3.0 conflict (fancyweb)
This PR was merged into the 5.4 branch. Discussion ---------- [Console] Restore psr/log >= 3.0 conflict | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | #43884 (comment) | License | MIT | Doc PR | - Commits ------- 5c65796 [Console] Restore psr/log >= 3.0 conflict
2 parents a74fdac + 5c65796 commit 175e3f7

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