Skip to content

Commit d3af0a6

Browse files
authored
Merge pull request #7 from tobias-93/master
Fix deprecated Twig function call for Twig 3 compatibility
2 parents 6bdb7f8 + 88d6ca8 commit d3af0a6

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)