Skip to content

Commit

Permalink
Use explicit cast for equality comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Feb 29, 2024
1 parent 37cb4a8 commit e28ae7c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public function hasChildren(): bool
*/
public function isCurrent(): bool
{
return Hyde::currentRoute()->getLink() === (string) $this->destination;
return Hyde::currentRoute()->getLink() === $this->destination->getLink();
}

/**
Expand Down

0 comments on commit e28ae7c

Please sign in to comment.