Skip to content

Commit 1c3b6a8

Browse files
authored
Fix deprecation error in the route:list command (#42704)
1 parent 565b6e5 commit 1c3b6a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/Console/RouteListCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ protected function forCli($routes)
400400
$spaces,
401401
preg_replace('#({[^}]+})#', '<fg=yellow>$1</>', $uri),
402402
$dots,
403-
str_replace(' ', '', $action),
403+
str_replace(' ', '', $action ?? ''),
404404
), $this->output->isVerbose() && ! empty($middleware) ? "<fg=#6C7280>$middleware</>" : null];
405405
})
406406
->flatten()

0 commit comments

Comments
 (0)