Skip to content

Commit

Permalink
bug #25672 [WebServerBundle] use interface_exists instead of class_ex…
Browse files Browse the repository at this point in the history
…ists (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
  • Loading branch information
nicolas-grekas committed Jan 3, 2018
2 parents 9918a66 + dc3a94e commit 22b7d12
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -37,7 +37,7 @@ public function isEnabled()
}

// 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;
}

Expand Down

0 comments on commit 22b7d12

Please sign in to comment.