@@ -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
@@ -48,7 +48,7 @@ public function __construct(HasherContract $hasher, $model)
48
48
* Retrieve a user by their unique identifier.
49
49
*
50
50
* @param mixed $identifier
51
- * @return \Illuminate\Contracts\Auth\Authenticatable|null
51
+ * @return ( \Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model) |null
52
52
*/
53
53
public function retrieveById ($ identifier )
54
54
{
@@ -64,7 +64,7 @@ public function retrieveById($identifier)
64
64
*
65
65
* @param mixed $identifier
66
66
* @param string $token
67
- * @return \Illuminate\Contracts\Auth\Authenticatable|null
67
+ * @return ( \Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model) |null
68
68
*/
69
69
public function retrieveByToken ($ identifier , #[\SensitiveParameter] $ token )
70
70
{
@@ -86,7 +86,7 @@ public function retrieveByToken($identifier, #[\SensitiveParameter] $token)
86
86
/**
87
87
* Update the "remember me" token for the given user in storage.
88
88
*
89
- * @param \Illuminate\Contracts\Auth\Authenticatable $user
89
+ * @param \Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model $user
90
90
* @param string $token
91
91
* @return void
92
92
*/
@@ -107,7 +107,7 @@ public function updateRememberToken(UserContract $user, #[\SensitiveParameter] $
107
107
* Retrieve a user by the given credentials.
108
108
*
109
109
* @param array $credentials
110
- * @return \Illuminate\Contracts\Auth\Authenticatable|null
110
+ * @return ( \Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model) |null
111
111
*/
112
112
public function retrieveByCredentials (#[\SensitiveParameter] array $ credentials )
113
113
{
@@ -142,7 +142,7 @@ public function retrieveByCredentials(#[\SensitiveParameter] array $credentials)
142
142
/**
143
143
* Validate a user against the given credentials.
144
144
*
145
- * @param \Illuminate\Contracts\Auth\Authenticatable $user
145
+ * @param \Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model $user
146
146
* @param array $credentials
147
147
* @return bool
148
148
*/
@@ -162,7 +162,7 @@ public function validateCredentials(UserContract $user, #[\SensitiveParameter] a
162
162
/**
163
163
* Rehash the user's password if required and supported.
164
164
*
165
- * @param \Illuminate\Contracts\Auth\Authenticatable $user
165
+ * @param \Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model $user
166
166
* @param array $credentials
167
167
* @param bool $force
168
168
* @return void
@@ -200,7 +200,7 @@ protected function newModelQuery($model = null)
200
200
/**
201
201
* Create a new instance of the model.
202
202
*
203
- * @return \Illuminate\Database\Eloquent\Model
203
+ * @return \Illuminate\Contracts\Auth\Authenticatable&\Illuminate\ Database\Eloquent\Model
204
204
*/
205
205
public function createModel ()
206
206
{
@@ -235,7 +235,7 @@ public function setHasher(HasherContract $hasher)
235
235
/**
236
236
* Gets the name of the Eloquent user model.
237
237
*
238
- * @return string
238
+ * @return class- string<\Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model>
239
239
*/
240
240
public function getModel ()
241
241
{
@@ -245,7 +245,7 @@ public function getModel()
245
245
/**
246
246
* Sets the name of the Eloquent user model.
247
247
*
248
- * @param string $model
248
+ * @param class- string<\Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model> $model
249
249
* @return $this
250
250
*/
251
251
public function setModel ($ model )
0 commit comments