We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51bbc99 commit 1494b5fCopy full SHA for 1494b5f
app/code/Magento/Customer/Model/Plugin/UpdateCustomer.php
@@ -53,7 +53,7 @@ public function beforeSave(
53
?string $passwordHash = null
54
): array {
55
$customerSessionId = $this->userContext->getUserType() === $this->userContext::USER_TYPE_CUSTOMER ?
56
- $this->userContext->getUserId() : 0;
+ (int)$this->userContext->getUserId() : 0;
57
$customerId = (int)$this->request->getParam('customerId');
58
$bodyParams = $this->request->getBodyParams();
59
if (!isset($bodyParams['customer']['Id']) && $customerId) {
0 commit comments