Skip to content

Commit

Permalink
OXDEV-7202 Fix deprecated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
liulka-oxid committed Feb 19, 2024
1 parent 50618ed commit b4f3c50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/Application/Component/UserComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -874,21 +874,21 @@ private function deleteExistingGuestUser(string $newName): void
}
}

private function getShippingAddress(): array
private function getShippingAddress(): ?array
{
$shippingAddress = $this->getDelAddressData();
$shippingAddress = $this->cleanAddress($shippingAddress, oxNew(UserShippingAddressUpdatableFields::class));
return $this->trimAddress($shippingAddress);
}

private function getBillingAddress(): array
private function getBillingAddress(): ?array
{
$billingAddress = Registry::getRequest()->getRequestParameter('invadr');
$billingAddress = $this->cleanAddress($billingAddress, oxNew(UserUpdatableFields::class));
if ($billingAddress && is_array($billingAddress)) {
$billingAddress = $this->removeNonAddressFields($billingAddress);
}
return (array) $this->trimAddress($billingAddress);
return $this->trimAddress($billingAddress);
}

private function removeNonAddressFields(array $addressFormData): array
Expand Down

0 comments on commit b4f3c50

Please sign in to comment.