Skip to content

Commit

Permalink
Merge pull request #1859 from MGatner/cli-routes-strings-filter
Browse files Browse the repository at this point in the history
Ignore callbacks in routes list
  • Loading branch information
lonnieezell authored Mar 23, 2019
2 parents ac37fdb + d324bc0 commit 7e1c666
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions system/Commands/Utilities/Routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,14 @@ public function run(array $params)

foreach ($routes as $from => $to)
{
$tbody[] = [
$from,
$method,
$to,
];
// filter for strings, as callbacks aren't displayable
if (is_string($to)) {
$tbody[] = [
$from,
$method,
$to,
];
}
}
}

Expand Down

0 comments on commit 7e1c666

Please sign in to comment.