We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f1dbc9 commit d05e9d3Copy full SHA for d05e9d3
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