@@ -20,7 +20,7 @@ class EloquentUserProvider implements UserProvider
2020 /**
2121 * The Eloquent user model.
2222 *
23- * @var string
23+ * @var class- string<\Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model>
2424 */
2525 protected $ model ;
2626
@@ -47,7 +47,7 @@ public function __construct(HasherContract $hasher, $model)
4747 * Retrieve a user by their unique identifier.
4848 *
4949 * @param mixed $identifier
50- * @return \Illuminate\Contracts\Auth\Authenticatable|null
50+ * @return ( \Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model) |null
5151 */
5252 public function retrieveById ($ identifier )
5353 {
@@ -63,7 +63,7 @@ public function retrieveById($identifier)
6363 *
6464 * @param mixed $identifier
6565 * @param string $token
66- * @return \Illuminate\Contracts\Auth\Authenticatable|null
66+ * @return ( \Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model) |null
6767 */
6868 public function retrieveByToken ($ identifier , #[\SensitiveParameter] $ token )
6969 {
@@ -85,7 +85,7 @@ public function retrieveByToken($identifier, #[\SensitiveParameter] $token)
8585 /**
8686 * Update the "remember me" token for the given user in storage.
8787 *
88- * @param \Illuminate\Contracts\Auth\Authenticatable $user
88+ * @param \Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model $user
8989 * @param string $token
9090 * @return void
9191 */
@@ -106,7 +106,7 @@ public function updateRememberToken(UserContract $user, #[\SensitiveParameter] $
106106 * Retrieve a user by the given credentials.
107107 *
108108 * @param array $credentials
109- * @return \Illuminate\Contracts\Auth\Authenticatable|null
109+ * @return ( \Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model) |null
110110 */
111111 public function retrieveByCredentials (#[\SensitiveParameter] array $ credentials )
112112 {
@@ -161,7 +161,7 @@ public function validateCredentials(UserContract $user, #[\SensitiveParameter] a
161161 /**
162162 * Rehash the user's password if required and supported.
163163 *
164- * @param \Illuminate\Contracts\Auth\Authenticatable $user
164+ * @param \Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model $user
165165 * @param array $credentials
166166 * @param bool $force
167167 * @return void
@@ -199,7 +199,7 @@ protected function newModelQuery($model = null)
199199 /**
200200 * Create a new instance of the model.
201201 *
202- * @return \Illuminate\Database\Eloquent\Model
202+ * @return \Illuminate\Contracts\Auth\Authenticatable&\Illuminate\ Database\Eloquent\Model
203203 */
204204 public function createModel ()
205205 {
@@ -234,7 +234,7 @@ public function setHasher(HasherContract $hasher)
234234 /**
235235 * Gets the name of the Eloquent user model.
236236 *
237- * @return string
237+ * @return class- string<\Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model>
238238 */
239239 public function getModel ()
240240 {
@@ -244,7 +244,7 @@ public function getModel()
244244 /**
245245 * Sets the name of the Eloquent user model.
246246 *
247- * @param string $model
247+ * @param class- string<\Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model> $model
248248 * @return $this
249249 */
250250 public function setModel ($ model )
0 commit comments