Skip to content

Commit

Permalink
Fix type errors with userId magento#34618
Browse files Browse the repository at this point in the history
  • Loading branch information
markshust committed Nov 11, 2021
1 parent 6e8850b commit 46f8681
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ public function addUserIdsFilter(array $userIds = []): Collection
/**
* Get any expired records for the given user.
*
* @param string $userId
* @param int $userId
* @return Collection
*/
public function addExpiredRecordsForUserFilter(string $userId): Collection
public function addExpiredRecordsForUserFilter(int $userId): Collection
{
return $this->addActiveExpiredUsersFilter()
->addFieldToFilter('main_table.user_id', (int)$userId);
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Security/Model/UserExpirationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ private function processExpiredUsers(ExpiredUsersCollection $expiredRecords): vo
/**
* Check if the given user is expired.
*
* @param string $userId
* @param int $userId
* @return bool
*/
public function isUserExpired(string $userId): bool
public function isUserExpired(int $userId): bool
{
$isExpired = false;
/** @var \Magento\Security\Api\Data\UserExpirationInterface $expiredRecord */
Expand Down

0 comments on commit 46f8681

Please sign in to comment.