Skip to content

Commit cb8464e

Browse files
ENGCOM-1632: Fixes in InstantPurchase #15257
- Merge Pull Request #15257 from mhauri/magento2:fix-instantpurchase - Merged commits: 1. 770d8ba 2. e03c9a3 3. 31a098b 4. 57e3180 5. 08508fa
2 parents 57b5fdb + 08508fa commit cb8464e

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
@@ -20,22 +20,22 @@
2020
class InstantPurchaseOption
2121
{
2222
/**
23-
* @var PaymentTokenInterface
23+
* @var PaymentTokenInterface|null
2424
*/
2525
private $paymentToken;
2626

2727
/**
28-
* @var AddressIn
28+
* @var Address|null
2929
*/
3030
private $shippingAddress;
3131

3232
/**
33-
* @var Address
33+
* @var Address|null
3434
*/
3535
private $billingAddress;
3636

3737
/**
38-
* @var ShippingMethodInterface
38+
* @var ShippingMethodInterface|null
3939
*/
4040
private $shippingMethod;
4141

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
@@ -39,7 +39,7 @@ public function get($type) : DeferredShippingMethodChooserInterface
3939
{
4040
if (!isset($this->choosers[$type])) {
4141
throw new \InvalidArgumentException(sprintf(
42-
'Deferred shipping method chooser is not registered.',
42+
'Deferred shipping method %s is not registered.',
4343
$type
4444
));
4545
}

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)