Skip to content

Commit fc4fc90

Browse files
committed
RouteList::addRoute() added return typehint
1 parent 55c1b63 commit fc4fc90

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
@@ -221,12 +221,7 @@ protected function modify(int $index, ?Router $router): void
221221
}
222222

223223

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

0 commit comments

Comments
 (0)