Skip to content

Commit

Permalink
Update DefinedRouteCollector.php
Browse files Browse the repository at this point in the history
Use RouteCollectorInterface rather than RouteCollector to allow for people implementing new RouteCollectors by implementing the interface as intended.

Currently this would generate type errors.
  • Loading branch information
webalchemist authored Nov 14, 2023
1 parent a5ddb5e commit 3eba758
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/Router/DefinedRouteCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
*/
final class DefinedRouteCollector
{
private RouteCollection $routeCollection;
private RouteCollectionInterface $routeCollection;

public function __construct(RouteCollection $routes)
public function __construct(RouteCollectionInterface $routes)
{
$this->routeCollection = $routes;
}
Expand Down

0 comments on commit 3eba758

Please sign in to comment.