Skip to content

Commit 80dcb2d

Browse files
committed
RouteList::addRoute() added return typehint
1 parent 8102688 commit 80dcb2d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Routing/RouteList.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,7 @@ protected function modify(int $index, ?Router $router): void
220220
}
221221

222222

223-
/**
224-
* @param string $mask e.g. '<presenter>/<action>/<id \d{1,3}>'
225-
* @param array $metadata default values or metadata
226-
* @return static
227-
*/
228-
public function addRoute(string $mask, array $metadata = [], int $oneWay = 0)
223+
public function addRoute(string $mask, array $metadata = [], int $oneWay = 0): static
229224
{
230225
$this->add(new Route($mask, $metadata), $oneWay);
231226
return $this;

0 commit comments

Comments
 (0)