diff --git a/src/web/twig/TemplateCommentsParser.php b/src/web/twig/TemplateCommentsParser.php index 9f11850..1e3df71 100644 --- a/src/web/twig/TemplateCommentsParser.php +++ b/src/web/twig/TemplateCommentsParser.php @@ -92,6 +92,7 @@ class TemplateCommentsParser extends Parser public function __construct(Environment $env) { $this->env = $env; + $this->expressionParserClass = ExpressionParser::class; // Get the existing parser object used by the Twig $env try { $parserReflection = ReflectionHelper::getReflectionProperty($env, 'parser');