diff --git a/app/code/Magento/Security/Model/ResourceModel/UserExpiration/Collection.php b/app/code/Magento/Security/Model/ResourceModel/UserExpiration/Collection.php index 2f2971bc90225..306701c612a4a 100644 --- a/app/code/Magento/Security/Model/ResourceModel/UserExpiration/Collection.php +++ b/app/code/Magento/Security/Model/ResourceModel/UserExpiration/Collection.php @@ -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); diff --git a/app/code/Magento/Security/Model/UserExpirationManager.php b/app/code/Magento/Security/Model/UserExpirationManager.php index 667ff4841165c..1891906ffc9bb 100644 --- a/app/code/Magento/Security/Model/UserExpirationManager.php +++ b/app/code/Magento/Security/Model/UserExpirationManager.php @@ -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 */