Skip to content

Commit

Permalink
fix $template has to be instance of LR\Template or Nette\Templating\T…
Browse files Browse the repository at this point in the history
…emplate, instance of TemplateXXX given.
  • Loading branch information
adaamz authored Nov 1, 2016
1 parent f31bb81 commit c2ed803
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 c2ed803

Please sign in to comment.