Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[9.x] Fix deprecation error in the route:list command #42704

Merged
merged 1 commit into from
Jun 8, 2022
Merged

[9.x] Fix deprecation error in the route:list command #42704

merged 1 commit into from
Jun 8, 2022

Conversation

bonzai
Copy link
Contributor

@bonzai bonzai commented Jun 8, 2022

Let's say you have a closure based route like this:

use Illuminate\Support\Facades\Route;
 
Route::get('/', function () {
    return 'Hello World';
});

After you run the route:list command, you'll see a deprecation warning in Laravel Telescope (under PHP 8.1), because there is no action defined for this route:

str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/[...]/RouteListCommand.php on line 403

@taylorotwell taylorotwell merged commit 1c3b6a8 into laravel:9.x Jun 8, 2022
@bonzai bonzai deleted the fix-deprecation-error branch June 8, 2022 15:26
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.

2 participants