Skip to content

Commit

Permalink
Make sure $this->route is not null
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvermeyen committed Apr 8, 2023
1 parent 8d9a9e0 commit 3efa560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LocalizedUrlGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ protected function is404(): bool
*/
protected function isFallback(): bool
{
return $this->route->isFallback;
return $this->routeExists() && $this->route->isFallback;
}

/**
Expand Down

0 comments on commit 3efa560

Please sign in to comment.