Skip to content

Commit 3efa560

Browse files
committed
Make sure $this->route is not null
1 parent 8d9a9e0 commit 3efa560

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/LocalizedUrlGenerator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ protected function is404(): bool
162162
*/
163163
protected function isFallback(): bool
164164
{
165-
return $this->route->isFallback;
165+
return $this->routeExists() && $this->route->isFallback;
166166
}
167167

168168
/**

0 commit comments

Comments
 (0)