Skip to content

Commit 64c5f73

Browse files
authored
Merge pull request #20 from SimLibaud/sil
Add native return type declaration (array) to Twig functions extension
2 parents eb9a945 + 09f8ed1 commit 64c5f73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Twig/RouteSecurityExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function __construct(AccessControl $accessControl)
2222
$this->accessControl = $accessControl;
2323
}
2424

25-
public function getFunctions()
25+
public function getFunctions(): array
2626
{
2727
return [
2828
new TwigFunction('hasUserAccessToRoute', [$this->accessControl, 'hasUserAccessToRoute']),

0 commit comments

Comments
 (0)