Skip to content

Commit

Permalink
refactor: Set the default class
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Aug 6, 2024
1 parent 75e14c3 commit 8dda8d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/web/twig/TemplateCommentsParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 8dda8d6

Please sign in to comment.