From 86997d1bef3582c8eae5e2483289687dfc178b67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Machulda?= Date: Mon, 5 Jan 2026 19:11:58 +0100 Subject: [PATCH] Fix opcache preload warning for unlinked anonymous class --- src/ExtensionSet.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ExtensionSet.php b/src/ExtensionSet.php index 66467b0b4..7bb62fa78 100644 --- a/src/ExtensionSet.php +++ b/src/ExtensionSet.php @@ -27,6 +27,10 @@ use Twig\Node\Expression\AbstractExpression; use Twig\NodeVisitor\NodeVisitorInterface; use Twig\TokenParser\TokenParserInterface; +// Help opcache.preload discover always-needed symbols +// @see https://github.com/php/php-src/issues/10131 +class_exists(BinaryOperatorExpressionParser::class); + /** * @author Fabien Potencier *