Skip to content

Commit c8d9932

Browse files
committed
Narrow return type declaration
The called method UrlGenerator::canonicalUrl() never returns null.
1 parent 0dd4015 commit c8d9932

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/guides/src/RenderContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function getLink(string $name, bool $relative = true): string
9494
return '';
9595
}
9696

97-
public function canonicalUrl(string $url): string|null
97+
public function canonicalUrl(string $url): string
9898
{
9999
return $this->urlGenerator->canonicalUrl($this->getDirName(), $url);
100100
}

0 commit comments

Comments
 (0)