Fix parse error in generated code when using CaptureNode

This commit is contained in:
Nicolas Grekas
2024-05-16 11:46:35 +02:00
parent 7069d82f23
commit 504252835c
+2
View File
@@ -50,6 +50,8 @@ class CaptureNode extends Node
}
if (!$this->getAttribute('raw')) {
$compiler->raw(") ? '' : new Markup(\$tmp, \$this->env->getCharset());");
} else {
$compiler->raw(';');
}
}
}