Skip to content

Commit 218b6bb

Browse files
committed
The setMatchedRoute method now returns nothing.
Signed-off-by: Andrey Pyzhikov <5071@mail.ru>
1 parent abdeaa5 commit 218b6bb

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

system/Router/Router.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -653,14 +653,12 @@ protected function setDefaultController()
653653
/**
654654
* @param callable|string $handler
655655
*
656-
* @return static
656+
* @return void
657657
*/
658658
protected function setMatchedRoute(string $route, $handler)
659659
{
660660
$this->matchedRoute = [$route, $handler];
661661

662662
$this->matchedRouteOptions = $this->collection->getRoutesOptions($route);
663-
664-
return $this;
665663
}
666664
}

0 commit comments

Comments
 (0)