Skip to content

Commit

Permalink
Compare current state as string
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Feb 8, 2024
1 parent 3ffe1af commit c972856
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function getGroup(): ?string
*/
public function isCurrent(): bool
{
return Hyde::currentRoute()->getLink() === $this->destination;
return Hyde::currentRoute()->getLink() === (string) $this->destination;
}

protected static function getRouteGroup(Route $route): ?string
Expand Down

0 comments on commit c972856

Please sign in to comment.