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 0839eea commit c912fc2Copy full SHA for c912fc2
src/TwigComponent/src/Twig/ComponentNode.php
@@ -19,6 +19,7 @@
19
use Twig\Node\Expression\AbstractExpression;
20
use Twig\Node\Node;
21
use Twig\Node\NodeOutputInterface;
22
+use Twig\Template;
23
24
/**
25
* @author Fabien Potencier <[email protected]>
@@ -155,7 +156,7 @@ public function compile(Compiler $compiler): void
155
156
$compiler->write('yield from ');
157
}
158
- if (Environment::VERSION_ID >= 32100) {
159
+ if (method_exists(Template::class, 'load')) {
160
$compiler
161
->write('$this->load(')
162
->string($this->getAttribute('embedded_template'))
0 commit comments