Skip to content

Commit

Permalink
Merge pull request #7 from tobias-93/master
Browse files Browse the repository at this point in the history
Fix deprecated Twig function call for Twig 3 compatibility
  • Loading branch information
tobias-93 authored May 18, 2021
2 parents 6bdb7f8 + 88d6ca8 commit d3af0a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Builder/BaseBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public function writeOnDisk($outputDirectory)
public function getCode()
{
$twig = $this->getTwigEnvironment();
$template = $twig->loadTemplate($this->getTemplateName());
$template = $twig->load($this->getTemplateName());

$variables = $this->getVariables();
$variables['builder'] = $this;
Expand Down

0 comments on commit d3af0a6

Please sign in to comment.