Skip to content

Commit 08c6f57

Browse files
authored
Update ComponentNode.php
1 parent 375f232 commit 08c6f57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TwigComponent/src/Twig/ComponentNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function compile(Compiler $compiler): void
7777
->write('if (null !== $preRendered) {')
7878
->raw("\n")
7979
->indent();
80-
if (method_exists(Environment::class, 'useYield') && $compiler->getEnvironment()->useYield()) {
80+
if (method_exists(Environment::class, 'useYield')) {
8181
$compiler->write('yield from $preRendered; ');
8282
} else {
8383
$compiler->write('echo $preRendered; ');

0 commit comments

Comments
 (0)