Skip to content

Commit

Permalink
Merge pull request #41 from CZechBoY/patch-1
Browse files Browse the repository at this point in the history
fix $template has to be instance of LR\Template or Nette\Templating\Template given.
  • Loading branch information
brabijan committed Nov 1, 2016
2 parents f31bb81 + c2ed803 commit 8ad8eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Brabijan/Images/Macros/Latte.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function finalize()
*/
public static function validateTemplateParams($template)
{
if (!($template instanceof \Latte\Runtime\Template) || !($template instanceof \Nette\Application\UI\Template)) {
if (!($template instanceof \Latte\Runtime\Template) && !($template instanceof \Nette\Application\UI\Template)) {
throw new \InvalidArgumentException('$template has to be instance of LR\Template or Nette\Templating\Template, instance of ' . get_class($template) . ' given.');
}

Expand Down

0 comments on commit 8ad8eb2

Please sign in to comment.