Skip to content

Commit

Permalink
Controller can be a closure in TagViewBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Feb 22, 2018
1 parent 8113d69 commit 3740511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundle/View/Builder/TagViewBuilder.php
Expand Up @@ -73,7 +73,7 @@ public function __construct(
*/
public function matches($argument)
{
return strpos($argument, 'eztags.controller.tag_view:') !== false;
return is_string($argument) && strpos($argument, 'eztags.controller.tag_view:') !== false;
}

/**
Expand Down

0 comments on commit 3740511

Please sign in to comment.