Skip to content

Commit

Permalink
removed one usage of Template vs TemplateWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Mar 12, 2019
1 parent 7e30569 commit 5e1a361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Environment.php
Expand Up @@ -532,7 +532,7 @@ public function loadClass($cls, $name, $index = null)
*
* @param string $template The template name
*
* @return Template A template instance representing the given template name
* @return TemplateWrapper A template instance representing the given template name
*
* @throws LoaderError When the template cannot be found
* @throws SyntaxError When an error occurred during compilation
Expand All @@ -548,7 +548,7 @@ public function createTemplate($template)

$this->setLoader($loader);
try {
$template = $this->loadTemplate($name);
$template = new TemplateWrapper($this, $this->loadTemplate($name));
} catch (\Exception $e) {
$this->setLoader($current);

Expand Down

0 comments on commit 5e1a361

Please sign in to comment.