From 8dda8d694ed25c19dd7d7be3929ee882e083f821 Mon Sep 17 00:00:00 2001 From: Andrew Welch Date: Tue, 6 Aug 2024 16:03:04 -0400 Subject: [PATCH] refactor: Set the default class --- src/web/twig/TemplateCommentsParser.php | 1 + 1 file changed, 1 insertion(+) 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');