File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/Lodash/Auth/Contracts Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 66
77interface AuthServiceContract
88{
9- public function findOneForAuth (int $ id ): ?UserContract ;
9+ public function findOneForAuth (int | string $ id ): ?UserContract ;
1010
11- public function findOneForAuthOrFail (int $ id ): UserContract ;
11+ public function findOneForAuthOrFail (int | string $ id ): UserContract ;
1212
13- public function retrieveUserById (int $ id ): ?UserContract ;
13+ public function retrieveUserById (int | string $ id ): ?UserContract ;
1414
1515 public function updateAccessToken (string $ accessTokenIdentifier , int $ userId ): void ;
1616
@@ -30,7 +30,7 @@ public function getEmulatorUser(): ?UserContract;
3030
3131 public function retrieveByCredentials (array $ credentials ): ?UserContract ;
3232
33- public function retrieveUserByToken (int $ identifier , string $ token ): ?UserContract ;
33+ public function retrieveUserByToken (int | string $ identifier , string $ token ): ?UserContract ;
3434
3535 public function validateCredentials (UserContract $ user , string $ password ): bool ;
3636
Original file line number Diff line number Diff line change 88
99interface UserRepositoryContract extends UserRepositoryInterface
1010{
11- public function findOneForAuth (int $ id ): ?UserContract ;
11+ public function findOneForAuth (int | string $ id ): ?UserContract ;
1212
1313 public function getGoogleUserByAccessToken (string $ googleToken ): ?array ;
1414
1515 public function getGoogleUserByIdToken (string $ googleToken ): ?array ;
1616
1717 public function retrieveByCredentials (array $ credentials ): ?UserContract ;
1818
19- public function retrieveUserByToken (int $ identifier , string $ token ): ?UserContract ;
19+ public function retrieveUserByToken (int | string $ identifier , string $ token ): ?UserContract ;
2020
2121 public function updateRememberToken (UserContract $ user , string $ token ): void ;
2222}
You can’t perform that action at this time.
0 commit comments