Skip to content

Commit

Permalink
fixed deprecation warning (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
romalytvynenko authored Feb 8, 2025
1 parent 31012d5 commit f5f9b22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ private function getRoutes(GeneratorConfig $config): Collection
return collect(RouteFacade::getRoutes())
->pipe(function (Collection $c) {
$onlyRoute = $c->first(function (Route $route) {
if (! is_string($route->getAction('controller'))) {
return false;
}

if (! is_string($route->getAction('uses'))) {
return false;
}
Expand Down

0 comments on commit f5f9b22

Please sign in to comment.