mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-14 07:46:02 +00:00
Tweak code
This commit is contained in:
@@ -344,7 +344,7 @@ final class ModuleNode extends Node
|
||||
}
|
||||
} elseif ($compiler->getEnvironment()->useYield() && !$this->hasNodeOutputNodes($this->getNode('body'))) {
|
||||
// ensure at least one yield call even for templates with no output
|
||||
$compiler->write("yield;\n");
|
||||
$compiler->write("yield '';\n");
|
||||
}
|
||||
|
||||
$compiler
|
||||
|
||||
Reference in New Issue
Block a user