Skip to content

Commit

Permalink
Removed null returned type.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiatng committed Aug 26, 2024
1 parent fd8dca3 commit 0f73b51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/code/core/Mage/Customer/controllers/AccountController.php
Original file line number Diff line number Diff line change
Expand Up @@ -891,12 +891,12 @@ public function resetPasswordPostAction()
}

/**
* @return string|false|null
* @return string|false
*/
protected function getCustomerId()
{
$customerId = $this->getRequest()->getQuery("id");
if ($customerId !== null && strlen($customerId) > 12) {
$customerId = $this->getRequest()->getQuery('id', false);
if (is_string($customerId) && strlen($customerId) > 12) {
$customerCollection = Mage::getModel('customer/customer')
->getCollection()
->addAttributeToSelect(['rp_customer_id'])
Expand Down

0 comments on commit 0f73b51

Please sign in to comment.