Skip to content

Commit

Permalink
Reverted changes to Router constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniyal Hamid committed Jan 2, 2022
1 parent 85612ea commit 2dac4e7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@
*/
class Router extends AbstractRouter implements MiddlewareInterface
{
public function __construct(
private RouteCollection $routeCollection = new RouteCollection(),
) {
private RouteCollection $routeCollection;

public function __construct()
{
$this->routeCollection = new RouteCollection();
}

/**
Expand Down

0 comments on commit 2dac4e7

Please sign in to comment.