Skip to content

Instantly share code, notes, and snippets.

@Marko-M
Created October 21, 2026 21:02
Show Gist options
  • Select an option

  • Save Marko-M/1676f8383fa00a2c720ae2fb2ceeb32f to your computer and use it in GitHub Desktop.

Select an option

Save Marko-M/1676f8383fa00a2c720ae2fb2ceeb32f to your computer and use it in GitHub Desktop.
246p15-2026-10-001-CE-bugfix.patch
diff --git a/vendor/magento/module-customer/Model/ForgotPasswordToken/GetCustomerByToken.php b/vendor/magento/module-customer/Model/ForgotPasswordToken/GetCustomerByToken.php
index e91bab987e906787095eca90c073d749974b2fb9..6b2cb8d56812adc0fdd5df43220bc1292192357d 100644
--- a/vendor/magento/module-customer/Model/ForgotPasswordToken/GetCustomerByToken.php
+++ b/vendor/magento/module-customer/Model/ForgotPasswordToken/GetCustomerByToken.php
@@ -85,6 +85,7 @@
);
}
- return $collection->getFirstItem();
+ // Resource collections return models; the service contract requires customer data.
+ return $this->customerRepository->getById((int)$collection->getFirstItem()->getId());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment