Remove useless assign in compiled code

This commit is contained in:
Ruud Kamphuis
2024-09-26 14:33:44 +02:00
parent be308bc5ac
commit 5c73c6695c
2 changed files with 0 additions and 2 deletions
-1
View File
@@ -42,7 +42,6 @@ class IncludeNode extends Node implements NodeOutputInterface
$template = $compiler->getVarName();
$compiler
->write(\sprintf("$%s = null;\n", $template))
->write("try {\n")
->indent()
->write(\sprintf('$%s = ', $template))
-1
View File
@@ -78,7 +78,6 @@ EOF
$node = new IncludeNode($expr, $vars, true, true, 1);
$tests[] = [$node, <<<EOF
// line 1
\$__internal_%s = null;
try {
\$__internal_%s = \$this->loadTemplate("foo.twig", null, 1);
} catch (LoaderError \$e) {