leroy-merlin-br / mongolid-laravel

Easy, powerful and ultrafast MongoDB ODM for Laravel.
MIT License
240 stars 41 forks source link

InvalidArgument - MongolidUserProvider::__construct expects MongolidLaravel\MongoLidModel, User::class provided #143

Closed hfisaquiel closed 3 years ago

hfisaquiel commented 3 years ago

As the second argument on create a instance of MongolidLaravel\MongolidUserProvider, expect a string class as a model to be initialized on createModel() method. PSalm reclaim to be a instance of MongolidLaravel\MongoLidModel, cause this is declared on a __construct comment, this prevents a CI to complete the process due PSalm "think" be a implementation error.