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 7a15f01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Components/Model/Order/Buyer.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ 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 */
/** @phan-suppress-next-line PhpUndefinedMethodInspection */
$address = $customer->getBilling();
if ($address instanceof Billing) {
$this->setFirstName($address->getFirstName());
Expand Down

0 comments on commit 7a15f01

Please sign in to comment.