Skip to content

Commit 46f8681

Browse files
committed
Fix type errors with userId magento#34618
1 parent 6e8850b commit 46f8681

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/code/Magento/Security/Model/ResourceModel/UserExpiration/Collection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ public function addUserIdsFilter(array $userIds = []): Collection
6464
/**
6565
* Get any expired records for the given user.
6666
*
67-
* @param string $userId
67+
* @param int $userId
6868
* @return Collection
6969
*/
70-
public function addExpiredRecordsForUserFilter(string $userId): Collection
70+
public function addExpiredRecordsForUserFilter(int $userId): Collection
7171
{
7272
return $this->addActiveExpiredUsersFilter()
7373
->addFieldToFilter('main_table.user_id', (int)$userId);

app/code/Magento/Security/Model/UserExpirationManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ private function processExpiredUsers(ExpiredUsersCollection $expiredRecords): vo
133133
/**
134134
* Check if the given user is expired.
135135
*
136-
* @param string $userId
136+
* @param int $userId
137137
* @return bool
138138
*/
139-
public function isUserExpired(string $userId): bool
139+
public function isUserExpired(int $userId): bool
140140
{
141141
$isExpired = false;
142142
/** @var \Magento\Security\Api\Data\UserExpirationInterface $expiredRecord */

0 commit comments

Comments
 (0)