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

ReflectionFunction::__construct(): Passing null to parameter #1 ($function) of type Closure|string is deprecated #870

Open
benmoseleygray opened this issue Dec 16, 2022 · 1 comment

Comments

@benmoseleygray
Copy link

I'm unsure how to get past this error on my dashboard.

When I go to /app/dashboard I get "ReflectionFunction::__construct(): Passing null to parameter #1 ($function) of type Closure|string is deprecated"

Route::get('/dashboard', [DashboardController::class])->name('dashboard');

@tibix
Copy link

tibix commented Mar 12, 2024

This is not right. If you want to use a Single Action, don't use the [], just ControllerName::class

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

No branches or pull requests

2 participants