diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2019-11-29 19:38:28 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2019-11-29 19:38:28 +0100 |
commit | 577c052aff605697cd173967751828a181cca4ad (patch) | |
tree | bfb3dd8af8cb0655c52b81be206134e8fe6a2cd5 /src/Renderer/Twig/Extensions/Url.php | |
parent | 15e6740e12df3fa53c4b0f3e85e3d91590f0ef60 (diff) |
Twig update to 3.0.0 and Renderer type hinting
Diffstat (limited to 'src/Renderer/Twig/Extensions/Url.php')
-rw-r--r-- | src/Renderer/Twig/Extensions/Url.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Renderer/Twig/Extensions/Url.php b/src/Renderer/Twig/Extensions/Url.php index 84c6aa4d..17fd6ff0 100644 --- a/src/Renderer/Twig/Extensions/Url.php +++ b/src/Renderer/Twig/Extensions/Url.php @@ -22,7 +22,7 @@ class Url extends TwigExtension /** * @return TwigFunction[] */ - public function getFunctions() + public function getFunctions(): array { return [ new TwigFunction('url', [$this, 'getUrl']), @@ -32,9 +32,9 @@ class Url extends TwigExtension /** * @param string $path * @param array $parameters - * @return UrlGenerator|string + * @return string */ - public function getUrl($path, $parameters = []) + public function getUrl(string $path, array $parameters = []): string { $path = str_replace('_', '-', $path); |