diff options
| -rw-r--r-- | src/Route.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Route.php b/src/Route.php index af08ded..f432d61 100644 --- a/src/Route.php +++ b/src/Route.php @@ -40,9 +40,10 @@ class Route return $this->segment; } - public function getPath(): string + /** @param array<string, string> $parameters */ + public function getPath(array $parameters = []): string { - return $this->segment->getPath(); + return $this->segment->getPath($parameters); } public function getHandler(): Closure |
