Skip to content

Commit

Permalink
Fix deprecation error in the route:list command (#42704)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonzai authored Jun 8, 2022
1 parent 565b6e5 commit 1c3b6a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Console/RouteListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ protected function forCli($routes)
$spaces,
preg_replace('#({[^}]+})#', '<fg=yellow>$1</>', $uri),
$dots,
str_replace(' ', '', $action),
str_replace(' ', '', $action ?? ''),
), $this->output->isVerbose() && ! empty($middleware) ? "<fg=#6C7280>$middleware</>" : null];
})
->flatten()
Expand Down

0 comments on commit 1c3b6a8

Please sign in to comment.