Skip to content

Commit 14ee77f

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: fixed a typo in the upgrade guide [Mime] Update mime types [Security] Avoid extra warning when preloading file when EL is not installed [PasswordHasher] Fix documentation link [HttpKernel] Backport type declaration fixes Run PHP 8.1 CI with all extensions
2 parents cf194c6 + 67fdb5b commit 14ee77f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Authorization/ExpressionLanguage.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
use Psr\Cache\CacheItemPoolInterface;
1515
use Symfony\Component\ExpressionLanguage\ExpressionLanguage as BaseExpressionLanguage;
1616

17-
// Help opcache.preload discover always-needed symbols
18-
class_exists(ExpressionLanguageProvider::class);
19-
2017
if (!class_exists(BaseExpressionLanguage::class)) {
2118
throw new \LogicException(sprintf('The "%s" class requires the "ExpressionLanguage" component. Try running "composer require symfony/expression-language".', ExpressionLanguage::class));
2219
} else {
20+
// Help opcache.preload discover always-needed symbols
21+
class_exists(ExpressionLanguageProvider::class);
22+
2323
/**
2424
* Adds some function to the default ExpressionLanguage.
2525
*

0 commit comments

Comments
 (0)