psalm / psalm-plugin-laravel

A Psalm plugin for Laravel
MIT License
306 stars 71 forks source link

Missing stub for EloquentBuilder "when" method for Laravel version 8, #205

Closed Falabu closed 1 year ago

Falabu commented 3 years ago

Currently, there is no stub for Laravel 8's EloquentBuilder "when" method and psalm showing error, when trying to call it with a second parameter.

TooManyArguments - Too many arguments for method Illuminate\Database\Eloquent\Builder::with - saw 2

From version 8 it's support a second parameter as a Closure.

https://github.com/laravel/framework/commit/c05334d29904551fe185a7f50839f37ebe2ff230

Simply add a stub, for the version 8 variant of EloquentBuilder.stubphp

`/**

alies-dev commented 1 year ago

sorry, Laravel 8 is not actively supported by this plugin (but PRs are welcome to 1.x branch). Closing.