diff --git a/system/Commands/Utilities/Routes.php b/system/Commands/Utilities/Routes.php index f8c8092d24d3..fada6d4971ac 100644 --- a/system/Commands/Utilities/Routes.php +++ b/system/Commands/Utilities/Routes.php @@ -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, + ]; + } } }