Skip to content

Commit

Permalink
Suppres inspection
Browse files Browse the repository at this point in the history
  • Loading branch information
olsi-qose committed Apr 22, 2021
1 parent 229fcd7 commit 098d11a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Components/Model/Order/Buyer.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ public function loadData(Customer $customer)
$this->setPhone($address->getPhone());
$this->setCountry($address->getCountry()->getIso());
}
} else {
} elseif (method_exists('\Shopware\Models\Customer\Customer', 'getBilling')) {
/** @phan-suppress-next-line UndeclaredTypeInInlineVar */
/** @var Billing $address */
/** @phan-suppress-next-line PhanUndeclaredMethod */
$address = $customer->getBilling();
/** @noinspection PhpUndefinedMethodInspection */
$address = $customer->getBilling(); /** @phan-suppress-current-line PhanUndeclaredMethod */
if ($address instanceof Billing) {
$this->setFirstName($address->getFirstName());
$this->setLastName($address->getLastName());
Expand Down

0 comments on commit 098d11a

Please sign in to comment.