Skip to content

Commit

Permalink
Fixed exception when template name is a TemplateReference object
Browse files Browse the repository at this point in the history
  • Loading branch information
lolautruche committed Jun 13, 2017
1 parent 5330620 commit 74fa7c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Templating/Twig/TwigThemeLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function getSource($name)

public function getSourceContext($name)
{
$source = $this->innerFilesystemLoader->getSourceContext($this->nameResolver->resolveTemplateName($name));
$source = $this->innerFilesystemLoader->getSourceContext($this->nameResolver->resolveTemplateName((string)$name));
$this->pathRegistry->mapTemplatePath($source->getName(), $source->getPath());

return $source;
Expand Down

0 comments on commit 74fa7c5

Please sign in to comment.