Skip to content

Commit 67fdb5b

Browse files
committed
[Security] Avoid extra warning when preloading file when EL is not installed
1 parent d460d42 commit 67fdb5b

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)