Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 committed Jul 7, 2024
1 parent 9a1a33f commit 8fe7a00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Support/Html/Mixins/LinkElementMixin.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ class LinkElementMixin
{
public function route(): mixed
{
return function (string $route, mixed $parameters = null, bool $absolute = true) {
return function (string $route, ...$parameters) {
/** @var A $this */

return $this->href(route($route, $parameters, $absolute));
return $this->href(route($route, ...$parameters));
};
}
}

0 comments on commit 8fe7a00

Please sign in to comment.