Skip to content

Commit 2dac4e7

Browse files
author
Daniyal Hamid
committed
Reverted changes to Router constructor
1 parent 85612ea commit 2dac4e7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Router.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@
2525
*/
2626
class Router extends AbstractRouter implements MiddlewareInterface
2727
{
28-
public function __construct(
29-
private RouteCollection $routeCollection = new RouteCollection(),
30-
) {
28+
private RouteCollection $routeCollection;
29+
30+
public function __construct()
31+
{
32+
$this->routeCollection = new RouteCollection();
3133
}
3234

3335
/**

0 commit comments

Comments
 (0)