Skip to content

Commit 33a2b9e

Browse files
author
Stanislav Idolov
authored
ENGCOM-1579: [backport] fixes for instant purchase module from #15257 #15258
2 parents dd1d8a6 + 16f435a commit 33a2b9e

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

app/code/Magento/InstantPurchase/Model/InstantPurchaseOption.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,22 @@
1919
class InstantPurchaseOption
2020
{
2121
/**
22-
* @var PaymentTokenInterface
22+
* @var PaymentTokenInterface|null
2323
*/
2424
private $paymentToken;
2525

2626
/**
27-
* @var AddressIn
27+
* @var Address|null
2828
*/
2929
private $shippingAddress;
3030

3131
/**
32-
* @var Address
32+
* @var Address|null
3333
*/
3434
private $billingAddress;
3535

3636
/**
37-
* @var ShippingMethodInterface
37+
* @var ShippingMethodInterface|null
3838
*/
3939
private $shippingMethod;
4040

app/code/Magento/InstantPurchase/Model/InstantPurchaseOptionLoadingFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function create(
100100
/**
101101
* Loads customer address model by identifier.
102102
*
103-
* @param $addressId
103+
* @param int $addressId
104104
* @return Address
105105
*/
106106
private function getAddress($addressId): Address

app/code/Magento/InstantPurchase/Model/ShippingMethodChoose/DeferredShippingMethodChooserPool.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function get($type) : DeferredShippingMethodChooserInterface
3232
{
3333
if (!isset($this->choosers[$type])) {
3434
throw new \InvalidArgumentException(sprintf(
35-
'Deferred shipping method chooser is not registered.',
35+
'Deferred shipping method %s is not registered.',
3636
$type
3737
));
3838
}

app/code/Magento/InstantPurchase/PaymentMethodIntegration/IntegrationsManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private function findIntegrations(int $storeId): array
146146
* </instant_purchase>
147147
*
148148
* @param VaultPaymentInterface $paymentMethod
149-
* @param $storeId
149+
* @param int|string|null|\Magento\Store\Model\Store $storeId
150150
* @return bool
151151
*/
152152
private function isIntegrationAvailable(VaultPaymentInterface $paymentMethod, $storeId): bool

0 commit comments

Comments
 (0)