Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
replace ImmMap by KeyedContainer (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
azjezz authored Feb 10, 2020
1 parent 7692f9c commit 32b2973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/router/BaseRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

abstract class BaseRouter<+TResponder> {
abstract protected function getRoutes(
): ImmMap<HttpMethod, ImmMap<string, TResponder>>;
): KeyedContainer<HttpMethod, KeyedContainer<string, TResponder>>;

final public function routeMethodAndPath(
HttpMethod $method,
Expand Down

1 comment on commit 32b2973

@fredemmott
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the next major release happens, these should probably be dicts instead and be opinionated. Good change for now though as not BC.

Please sign in to comment.