psalm-plugin-laravel
psalm-plugin-laravel copied to clipboard
Support Model::select() forward call
Is your feature request related to a problem? Please describe. Psalm seems to be unable to infer the type of the following assignment:
$users = User::select('name', 'email');
(The correct type would be Illuminate\Database\Eloquent\Builder<User>.)
Describe the solution you'd like Support this syntax.
Describe alternatives you've considered
Workaround is to call User::query()->select('name', 'email') directly.
Additional context (None.)