Commit 31f93e28 authored by catch's avatar catch
Browse files

Issue #3267078 by alexpott, Berdir: Add return typehint to TwigExtension::getFileUrl()

(cherry picked from commit d802bf41)
parent ddf5fc87
......@@ -281,9 +281,9 @@ public function getLink($text, $url, $attributes = []) {
* @return string
* The file URL.
*/
public function getFileUrl(?string $uri) {
public function getFileUrl(?string $uri): string {
if (is_null($uri)) {
return NULL;
return '';
}
return $this->fileUrlGenerator->generateString($uri);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment