Skip to content

Commit

Permalink
Merge pull request #20 from SimLibaud/sil
Browse files Browse the repository at this point in the history
Add native return type declaration (array) to Twig functions extension
  • Loading branch information
SimLibaud committed Apr 4, 2022
2 parents eb9a945 + 09f8ed1 commit 64c5f73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Twig/RouteSecurityExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __construct(AccessControl $accessControl)
$this->accessControl = $accessControl;
}

public function getFunctions()
public function getFunctions(): array
{
return [
new TwigFunction('hasUserAccessToRoute', [$this->accessControl, 'hasUserAccessToRoute']),
Expand Down

0 comments on commit 64c5f73

Please sign in to comment.