-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
Versions:
- ide-helper Version: 3.5.2
- Laravel Version: 11.37.0
- PHP Version: 8.4.2
Description:
sail a ide-helper:generate
TypeError
ReflectionFunction::__construct(): Argument #1 ($function) must be of type Closure|string, array given
at vendor/barryvdh/laravel-ide-helper/src/Alias.php:454
450▕ if (is_object($macro_func) && is_callable($macro_func) && !$macro_func instanceof Closure) {
451▕ return new \ReflectionMethod($macro_func, '__invoke');
452▕ }
453▕
➜ 454▕ return new \ReflectionFunction($macro_func);
455▕ }
456▕
457▕ /*
458▕ * Get the docblock for this alias
+28 vendor frames
29 artisan:13
Illuminate\Foundation\Application::handleCommand()Steps To Reproduce:
- Upgrade to latest version
- Run
php artisan ide-helper:generate - Get this error
If you need more info, please let me know!
ziming and mihob