Skip to content

Commit 88d6ca8

Browse files
committed
Fix deprecated Twig function call for Twig 3 compatibility
1 parent 6bdb7f8 commit 88d6ca8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Builder/BaseBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public function writeOnDisk($outputDirectory)
260260
public function getCode()
261261
{
262262
$twig = $this->getTwigEnvironment();
263-
$template = $twig->loadTemplate($this->getTemplateName());
263+
$template = $twig->load($this->getTemplateName());
264264

265265
$variables = $this->getVariables();
266266
$variables['builder'] = $this;

0 commit comments

Comments
 (0)