psalm-plugin-laravel icon indicating copy to clipboard operation
psalm-plugin-laravel copied to clipboard

Method Illuminate\Contracts\Validation\Validator::validateWithBag does not exist

Open vanthao03596 opened this issue 4 years ago • 2 comments

Describe the bug When run ./vendor/bin/psalm i have this error

Impacted Versions barryvdh/laravel-debugbar v3.6.2
barryvdh/laravel-ide-helper v2.9.1
fruitcake/laravel-cors v2.0.4
laravel/fortify v1.7.14
laravel/framework v8.50.0
laravel/sail v1.8.6
laravel/tinker v2.6.1
psalm/plugin-laravel v1.5.0
spatie/laravel-ray 1.23.0
vimeo/psalm 4.8.1

vanthao03596 avatar Jul 20 '21 08:07 vanthao03596

More infomation: Error show in UpdateUserPassword.php and UpdateUserProfileInformation.php from laravel/fortify

vanthao03596 avatar Jul 20 '21 08:07 vanthao03596

I don't think this is a Psalm issue this interface rally doesn't have this method. We can try to guess how this interface will be resolved (and will be right probably in 99% cases), but it's even possible to re-bind it in a runtime, so, I prefer to keep it simple and don't try to guess the real type. WDYT, @mr-feek ?

alies-dev avatar Feb 01 '23 20:02 alies-dev