@@ -20,7 +20,7 @@ class EloquentUserProvider implements UserProvider
20
20
/**
21
21
* The Eloquent user model.
22
22
*
23
- * @var string
23
+ * @var class- string<\Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model>
24
24
*/
25
25
protected $ model ;
26
26
@@ -47,7 +47,7 @@ public function __construct(HasherContract $hasher, $model)
47
47
* Retrieve a user by their unique identifier.
48
48
*
49
49
* @param mixed $identifier
50
- * @return \Illuminate\Contracts\Auth\Authenticatable|null
50
+ * @return ( \Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model) |null
51
51
*/
52
52
public function retrieveById ($ identifier )
53
53
{
@@ -63,7 +63,7 @@ public function retrieveById($identifier)
63
63
*
64
64
* @param mixed $identifier
65
65
* @param string $token
66
- * @return \Illuminate\Contracts\Auth\Authenticatable|null
66
+ * @return ( \Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model) |null
67
67
*/
68
68
public function retrieveByToken ($ identifier , #[\SensitiveParameter] $ token )
69
69
{
@@ -85,7 +85,7 @@ public function retrieveByToken($identifier, #[\SensitiveParameter] $token)
85
85
/**
86
86
* Update the "remember me" token for the given user in storage.
87
87
*
88
- * @param \Illuminate\Contracts\Auth\Authenticatable $user
88
+ * @param \Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model $user
89
89
* @param string $token
90
90
* @return void
91
91
*/
@@ -106,7 +106,7 @@ public function updateRememberToken(UserContract $user, #[\SensitiveParameter] $
106
106
* Retrieve a user by the given credentials.
107
107
*
108
108
* @param array $credentials
109
- * @return \Illuminate\Contracts\Auth\Authenticatable|null
109
+ * @return ( \Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model) |null
110
110
*/
111
111
public function retrieveByCredentials (#[\SensitiveParameter] array $ credentials )
112
112
{
@@ -161,7 +161,7 @@ public function validateCredentials(UserContract $user, #[\SensitiveParameter] a
161
161
/**
162
162
* Rehash the user's password if required and supported.
163
163
*
164
- * @param \Illuminate\Contracts\Auth\Authenticatable $user
164
+ * @param \Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model $user
165
165
* @param array $credentials
166
166
* @param bool $force
167
167
* @return void
@@ -199,7 +199,7 @@ protected function newModelQuery($model = null)
199
199
/**
200
200
* Create a new instance of the model.
201
201
*
202
- * @return \Illuminate\Database\Eloquent\Model
202
+ * @return \Illuminate\Contracts\Auth\Authenticatable&\Illuminate\ Database\Eloquent\Model
203
203
*/
204
204
public function createModel ()
205
205
{
@@ -234,7 +234,7 @@ public function setHasher(HasherContract $hasher)
234
234
/**
235
235
* Gets the name of the Eloquent user model.
236
236
*
237
- * @return string
237
+ * @return class- string<\Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model>
238
238
*/
239
239
public function getModel ()
240
240
{
@@ -244,7 +244,7 @@ public function getModel()
244
244
/**
245
245
* Sets the name of the Eloquent user model.
246
246
*
247
- * @param string $model
247
+ * @param class- string<\Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model> $model
248
248
* @return $this
249
249
*/
250
250
public function setModel ($ model )
0 commit comments