bug #25672 [WebServerBundle] use interface_exists instead of class_exists (kbond)
This PR was merged into the 3.3 branch.
Discussion
----------
[WebServerBundle] use interface_exists instead of class_exists
| Q | A
| ------------- | ---
| Branch? | 3.3
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | n/a
| License | MIT
| Doc PR | n/a
This bug was introduced in #25026
Commits
-------
dc3a94e
use interface_exists instead of class_exists
This commit is contained in:
commit
22b7d127b7
@ -37,7 +37,7 @@ class ServerLogCommand extends Command
|
|||||||
}
|
}
|
||||||
|
|
||||||
// based on a symfony/symfony package, it crashes due a missing FormatterInterface from monolog/monolog
|
// based on a symfony/symfony package, it crashes due a missing FormatterInterface from monolog/monolog
|
||||||
if (!class_exists(FormatterInterface::class)) {
|
if (!interface_exists(FormatterInterface::class)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user