summaryrefslogtreecommitdiff
path: root/src/Route.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Route.php')
-rw-r--r--src/Route.php5
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