Skip to content

Commit

Permalink
fixed compatibility with Nette 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
petrparolek authored and paveljanda committed Jun 3, 2021
1 parent 4dfa045 commit eb2262c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DI/ApiRoutesResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function findAndDestroyUserRoutes(IRouter $router): array
$keys = [];
$return = [];

foreach ($router as $key => $route) {
foreach ($router->getRouters() as $key => $route) {
$return[] = $route;
$keys[] = $key;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/cases/ApiRoutesResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testRouteList(): void

$order = [];

foreach ($router as $route) {
foreach ($router->getRouters() as $route) {
$order[] = $route;
}

Expand Down

0 comments on commit eb2262c

Please sign in to comment.