Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRAoW committed Jul 11, 2019
1 parent e1514d2 commit d25c5af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/TwigView.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ public function render($template, $data = [])
{
$twig = $this->getTwig();

if (!is_string($template)) {
return;
}

$renderResult = $twig->render($template . '.twig', $data);

return $renderResult;
Expand Down

0 comments on commit d25c5af

Please sign in to comment.