Skip to content

Commit

Permalink
minor #54808 [TwigBundle] Remove obsolete class_exists() call (derrabus)
Browse files Browse the repository at this point in the history
This PR was merged into the 7.1 branch.

Discussion
----------

[TwigBundle] Remove obsolete class_exists() call

| Q             | A
| ------------- | ---
| Branch?       | 7.1
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | N/A
| License       | MIT

Given that we require Twig >= 3, I believe we don't need to trigger the autoloader at this point anymore.

Commits
-------

f2a13b2 [TwigBundle] Remove obsolete class_exists() check
  • Loading branch information
fabpot committed May 2, 2024
2 parents 4c84578 + f2a13b2 commit a5e1313
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
use Twig\Environment;
use Twig\Extension\CoreExtension;

// BC/FC with namespaced Twig
class_exists(Environment::class);

/**
* Twig environment configurator.
*
Expand Down

0 comments on commit a5e1313

Please sign in to comment.