Skip to content

[9.x] Solve exception error: Undefined array key "", in artisan route:list command - #41031

Merged
taylorotwell merged 2 commits into
laravel:9.xfrom
manuglopez:9.x
Feb 15, 2022
Merged

[9.x] Solve exception error: Undefined array key "", in artisan route:list command#41031
taylorotwell merged 2 commits into
laravel:9.xfrom
manuglopez:9.x

Conversation

@manuglopez

Copy link
Copy Markdown
Contributor

If you run php artisan route:list --sort without any param you get an exception.

$ php artisan route:list --sort

ErrorException

Undefined array key ""

at vendor/laravel/framework/src/Illuminate/Foundation/Console/RouteListCommand.php:162

But by default routes would be sorted by uri, based on help on this command.

@driesvints driesvints changed the title Solve exception error: Undefined array key "", in artisan route:list command [9.x] Solve exception error: Undefined array key "", in artisan route:list command Feb 15, 2022
@taylorotwell
taylorotwell merged commit 4e3812a into laravel:9.x Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants