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 0f231bc commit 38bb72bCopy full SHA for 38bb72b
src/TwigComponent/src/Twig/ComponentNode.php
@@ -49,7 +49,7 @@ public function compile(Compiler $compiler): void
49
{
50
$compiler->addDebugInfo($this);
51
52
- $useYield = $compiler->getEnvironment()->useYield();
+ $useYield = method_exists(Environment::class, 'useYield') && $compiler->getEnvironment()->useYield();
53
54
// since twig/twig 3.9.0: Using the internal "twig_to_array" function is deprecated.
55
if (method_exists(CoreExtension::class, 'toArray')) {
0 commit comments