We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea5273c commit c0b5150Copy full SHA for c0b5150
src/LiveComponent/composer.json
@@ -29,7 +29,7 @@
29
"php": ">=8.1",
30
"symfony/property-access": "^5.4.5|^6.0|^7.0",
31
"symfony/ux-twig-component": "^2.8",
32
- "twig/twig": "~3.8.0"
+ "twig/twig": "^3.8.0"
33
},
34
"require-dev": {
35
"doctrine/annotations": "^1.0",
src/TwigComponent/src/Twig/ComponentNode.php
@@ -78,7 +78,7 @@ public function compile(Compiler $compiler): void
78
->raw("\n")
79
->indent();
80
if (method_exists(Environment::class, 'useYield')) {
81
- $compiler->write('yield from $preRendered; ');
+ $compiler->write('yield $preRendered; ');
82
} else {
83
$compiler->write('echo $preRendered; ');
84
}
0 commit comments