Skip to content

Commit 86997d1

Browse files
committed
Fix opcache preload warning for unlinked anonymous class
1 parent 6e38bec commit 86997d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ExtensionSet.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
use Twig\NodeVisitor\NodeVisitorInterface;
2828
use Twig\TokenParser\TokenParserInterface;
2929

30+
// Help opcache.preload discover always-needed symbols
31+
// @see https://github.com/php/php-src/issues/10131
32+
class_exists(BinaryOperatorExpressionParser::class);
33+
3034
/**
3135
* @author Fabien Potencier <fabien@symfony.com>
3236
*

0 commit comments

Comments
 (0)