laravel-ide-helper
laravel-ide-helper copied to clipboard
Wrong return type get() method
Versions:
- ide-helper Version: 3.0.0
- Laravel Version: 11.0.5
- PHP Version: 8.2.16
Description:
I'm using vscode with intelephense
User::with('role')->get(); // return Illuminate\Database\Eloquent\Collection
User::orderBy('username')->get(); // return Illuminate\Support\Collection (wrong)
Steps To Reproduce:
- php artisan ide-helper:generate
- php artisan ide-helper:models -M