Skip to content

Commit c1730b4

Browse files
authored
Fix Call to a member function getId() on int
``` Call to a member function getId() on int Exception in vendor/magento/module-customer/Block/Adminhtml/Edit/Tab/Newsletter.php:421 ``` The definition for `getCustomerId` always casts it as an `int` so doing `$customer->getId()` on it is destined to fail.
1 parent 72a4d4a commit c1730b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Customer/Block/Adminhtml/Edit/Tab/Newsletter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ protected function updateFromSession(Form $form, $customerId)
414414
*/
415415
public function getStatusChangedDate()
416416
{
417-
$customer = $this->getCurrentCustomerId();
417+
$customer = $this->getCurrentCustomer();
418418
if ($customer === null) {
419419
return '';
420420
}

0 commit comments

Comments
 (0)