Skip to content

Commit 1494b5f

Browse files
committed
AC-1821: Registered User & Customer API fixes
* typecast error fix
1 parent 51bbc99 commit 1494b5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Customer/Model/Plugin/UpdateCustomer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function beforeSave(
5353
?string $passwordHash = null
5454
): array {
5555
$customerSessionId = $this->userContext->getUserType() === $this->userContext::USER_TYPE_CUSTOMER ?
56-
$this->userContext->getUserId() : 0;
56+
(int)$this->userContext->getUserId() : 0;
5757
$customerId = (int)$this->request->getParam('customerId');
5858
$bodyParams = $this->request->getBodyParams();
5959
if (!isset($bodyParams['customer']['Id']) && $customerId) {

0 commit comments

Comments
 (0)