From d3e32160d2085020782dd5148b245eb591432fbd Mon Sep 17 00:00:00 2001 From: mahbub-zip <62676065+mahbub-zip@users.noreply.github.com> Date: Mon, 30 May 2022 20:11:42 +1000 Subject: [PATCH 1/2] support php 8.1 --- MerchantApi/Lib/Model/Address.php | 4 ++++ MerchantApi/Lib/Model/Authority.php | 4 ++++ MerchantApi/Lib/Model/CaptureChargeRequest.php | 4 ++++ MerchantApi/Lib/Model/Charge.php | 4 ++++ MerchantApi/Lib/Model/ChargeCollection.php | 4 ++++ MerchantApi/Lib/Model/ChargeOrder.php | 4 ++++ MerchantApi/Lib/Model/Checkout.php | 4 ++++ MerchantApi/Lib/Model/CheckoutConfiguration.php | 4 ++++ MerchantApi/Lib/Model/CheckoutFeatures.php | 4 ++++ MerchantApi/Lib/Model/CheckoutFeaturesTokenisation.php | 4 ++++ MerchantApi/Lib/Model/CheckoutOrder.php | 4 ++++ MerchantApi/Lib/Model/CreateChargeRequest.php | 4 ++++ MerchantApi/Lib/Model/CreateCheckoutRequest.php | 4 ++++ MerchantApi/Lib/Model/CreateCheckoutRequestFeatures.php | 4 ++++ .../Lib/Model/CreateCheckoutRequestFeaturesTokenisation.php | 4 ++++ MerchantApi/Lib/Model/CreateRefundRequest.php | 4 ++++ MerchantApi/Lib/Model/CreateTokenRequest.php | 4 ++++ MerchantApi/Lib/Model/Customer.php | 4 ++++ MerchantApi/Lib/Model/ErrorResponse.php | 4 ++++ MerchantApi/Lib/Model/ErrorResponseError.php | 4 ++++ MerchantApi/Lib/Model/ErrorResponseErrorDetails.php | 4 ++++ MerchantApi/Lib/Model/Flightadditionaldetails.php | 4 ++++ MerchantApi/Lib/Model/FlightadditionaldetailsPassengers.php | 4 ++++ MerchantApi/Lib/Model/HateoasLinks.php | 4 ++++ MerchantApi/Lib/Model/HateoaslinksLinks.php | 4 ++++ MerchantApi/Lib/Model/InlineResponse200.php | 4 ++++ MerchantApi/Lib/Model/Metadata.php | 4 ++++ MerchantApi/Lib/Model/OrderItem.php | 4 ++++ MerchantApi/Lib/Model/OrderItemAdditionalDetails.php | 4 ++++ MerchantApi/Lib/Model/OrderShipping.php | 4 ++++ MerchantApi/Lib/Model/OrderShippingTracking.php | 4 ++++ MerchantApi/Lib/Model/Refund.php | 4 ++++ MerchantApi/Lib/Model/Settlement.php | 4 ++++ MerchantApi/Lib/Model/SettlementTransactions.php | 4 ++++ MerchantApi/Lib/Model/Shopper.php | 4 ++++ MerchantApi/Lib/Model/ShopperStatistics.php | 4 ++++ MerchantApi/Lib/Model/Token.php | 4 ++++ Model/Config.php | 2 ++ 38 files changed, 150 insertions(+) diff --git a/MerchantApi/Lib/Model/Address.php b/MerchantApi/Lib/Model/Address.php index 4fed5f3..b2249f1 100644 --- a/MerchantApi/Lib/Model/Address.php +++ b/MerchantApi/Lib/Model/Address.php @@ -456,6 +456,7 @@ public function setLastName($last_name) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -466,6 +467,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -477,6 +479,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -491,6 +494,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/Authority.php b/MerchantApi/Lib/Model/Authority.php index 307ca08..f4b9533 100644 --- a/MerchantApi/Lib/Model/Authority.php +++ b/MerchantApi/Lib/Model/Authority.php @@ -207,6 +207,7 @@ public function setValue($value) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -217,6 +218,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -228,6 +230,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -242,6 +245,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/CaptureChargeRequest.php b/MerchantApi/Lib/Model/CaptureChargeRequest.php index 5402b47..153b39b 100644 --- a/MerchantApi/Lib/Model/CaptureChargeRequest.php +++ b/MerchantApi/Lib/Model/CaptureChargeRequest.php @@ -156,6 +156,7 @@ public function setAmount($amount) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -166,6 +167,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -177,6 +179,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -191,6 +194,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/Charge.php b/MerchantApi/Lib/Model/Charge.php index 4d1e02c..9d7c7ba 100644 --- a/MerchantApi/Lib/Model/Charge.php +++ b/MerchantApi/Lib/Model/Charge.php @@ -504,6 +504,7 @@ public function setReceiptNumber($receipt_number) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -514,6 +515,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -525,6 +527,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -539,6 +542,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/ChargeCollection.php b/MerchantApi/Lib/Model/ChargeCollection.php index 2e206f0..5348162 100644 --- a/MerchantApi/Lib/Model/ChargeCollection.php +++ b/MerchantApi/Lib/Model/ChargeCollection.php @@ -142,6 +142,7 @@ public function setItems($items) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -152,6 +153,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -163,6 +165,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -177,6 +180,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/ChargeOrder.php b/MerchantApi/Lib/Model/ChargeOrder.php index 6185270..114187f 100644 --- a/MerchantApi/Lib/Model/ChargeOrder.php +++ b/MerchantApi/Lib/Model/ChargeOrder.php @@ -248,6 +248,7 @@ public function setCartReference($cart_reference) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -258,6 +259,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -269,6 +271,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -283,6 +286,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/Checkout.php b/MerchantApi/Lib/Model/Checkout.php index 4418963..4d759f9 100644 --- a/MerchantApi/Lib/Model/Checkout.php +++ b/MerchantApi/Lib/Model/Checkout.php @@ -486,6 +486,7 @@ public function setMetadata($metadata) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -496,6 +497,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -507,6 +509,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -521,6 +524,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/CheckoutConfiguration.php b/MerchantApi/Lib/Model/CheckoutConfiguration.php index 32d5653..9cadf22 100644 --- a/MerchantApi/Lib/Model/CheckoutConfiguration.php +++ b/MerchantApi/Lib/Model/CheckoutConfiguration.php @@ -141,6 +141,7 @@ public function setRedirectUri($redirect_uri) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -151,6 +152,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -162,6 +164,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -176,6 +179,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/CheckoutFeatures.php b/MerchantApi/Lib/Model/CheckoutFeatures.php index 6331367..de99885 100644 --- a/MerchantApi/Lib/Model/CheckoutFeatures.php +++ b/MerchantApi/Lib/Model/CheckoutFeatures.php @@ -133,6 +133,7 @@ public function setTokenisation($tokenisation) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -143,6 +144,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -154,6 +156,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -168,6 +171,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/CheckoutFeaturesTokenisation.php b/MerchantApi/Lib/Model/CheckoutFeaturesTokenisation.php index 2df1b83..486bafd 100644 --- a/MerchantApi/Lib/Model/CheckoutFeaturesTokenisation.php +++ b/MerchantApi/Lib/Model/CheckoutFeaturesTokenisation.php @@ -133,6 +133,7 @@ public function setRequired($required) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -143,6 +144,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -154,6 +156,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -168,6 +171,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/CheckoutOrder.php b/MerchantApi/Lib/Model/CheckoutOrder.php index 6016dc4..8e81007 100644 --- a/MerchantApi/Lib/Model/CheckoutOrder.php +++ b/MerchantApi/Lib/Model/CheckoutOrder.php @@ -319,6 +319,7 @@ public function setCartReference($cart_reference) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -329,6 +330,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -340,6 +342,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -354,6 +357,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/CreateChargeRequest.php b/MerchantApi/Lib/Model/CreateChargeRequest.php index c83c80f..fa79d94 100644 --- a/MerchantApi/Lib/Model/CreateChargeRequest.php +++ b/MerchantApi/Lib/Model/CreateChargeRequest.php @@ -313,6 +313,7 @@ public function setMetadata($metadata) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -323,6 +324,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -334,6 +336,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -348,6 +351,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/CreateCheckoutRequest.php b/MerchantApi/Lib/Model/CreateCheckoutRequest.php index 2b82f80..69e0a99 100644 --- a/MerchantApi/Lib/Model/CreateCheckoutRequest.php +++ b/MerchantApi/Lib/Model/CreateCheckoutRequest.php @@ -304,6 +304,7 @@ public function setConfig($config) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -314,6 +315,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -325,6 +327,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -339,6 +342,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/CreateCheckoutRequestFeatures.php b/MerchantApi/Lib/Model/CreateCheckoutRequestFeatures.php index 22cf2a8..07e5fbd 100644 --- a/MerchantApi/Lib/Model/CreateCheckoutRequestFeatures.php +++ b/MerchantApi/Lib/Model/CreateCheckoutRequestFeatures.php @@ -138,6 +138,7 @@ public function setTokenisation($tokenisation) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -148,6 +149,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -159,6 +161,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -173,6 +176,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/CreateCheckoutRequestFeaturesTokenisation.php b/MerchantApi/Lib/Model/CreateCheckoutRequestFeaturesTokenisation.php index 8ee1889..9e8cb48 100644 --- a/MerchantApi/Lib/Model/CreateCheckoutRequestFeaturesTokenisation.php +++ b/MerchantApi/Lib/Model/CreateCheckoutRequestFeaturesTokenisation.php @@ -144,6 +144,7 @@ public function setRequired($required) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -154,6 +155,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -165,6 +167,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -179,6 +182,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/CreateRefundRequest.php b/MerchantApi/Lib/Model/CreateRefundRequest.php index 563a8ca..b24077f 100644 --- a/MerchantApi/Lib/Model/CreateRefundRequest.php +++ b/MerchantApi/Lib/Model/CreateRefundRequest.php @@ -282,6 +282,7 @@ public function setMetadata($metadata) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -292,6 +293,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -303,6 +305,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -317,6 +320,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/CreateTokenRequest.php b/MerchantApi/Lib/Model/CreateTokenRequest.php index d82686c..0cedf1f 100644 --- a/MerchantApi/Lib/Model/CreateTokenRequest.php +++ b/MerchantApi/Lib/Model/CreateTokenRequest.php @@ -145,6 +145,7 @@ public function setAuthority($authority) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -155,6 +156,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -166,6 +168,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -180,6 +183,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/Customer.php b/MerchantApi/Lib/Model/Customer.php index ae26608..f68b558 100644 --- a/MerchantApi/Lib/Model/Customer.php +++ b/MerchantApi/Lib/Model/Customer.php @@ -378,6 +378,7 @@ public function setGender($gender) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -388,6 +389,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -399,6 +401,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -413,6 +416,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/ErrorResponse.php b/MerchantApi/Lib/Model/ErrorResponse.php index caeca35..cdf29b0 100644 --- a/MerchantApi/Lib/Model/ErrorResponse.php +++ b/MerchantApi/Lib/Model/ErrorResponse.php @@ -138,6 +138,7 @@ public function setError($error) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -148,6 +149,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -159,6 +161,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -173,6 +176,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/ErrorResponseError.php b/MerchantApi/Lib/Model/ErrorResponseError.php index 83005fd..8aa5db9 100644 --- a/MerchantApi/Lib/Model/ErrorResponseError.php +++ b/MerchantApi/Lib/Model/ErrorResponseError.php @@ -203,6 +203,7 @@ public function setDetails($details) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -213,6 +214,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -224,6 +226,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -238,6 +241,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/ErrorResponseErrorDetails.php b/MerchantApi/Lib/Model/ErrorResponseErrorDetails.php index 7b945c7..629261d 100644 --- a/MerchantApi/Lib/Model/ErrorResponseErrorDetails.php +++ b/MerchantApi/Lib/Model/ErrorResponseErrorDetails.php @@ -164,6 +164,7 @@ public function setMessage($message) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -174,6 +175,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -185,6 +187,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -199,6 +202,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/Flightadditionaldetails.php b/MerchantApi/Lib/Model/Flightadditionaldetails.php index 4090a6f..9a066f1 100644 --- a/MerchantApi/Lib/Model/Flightadditionaldetails.php +++ b/MerchantApi/Lib/Model/Flightadditionaldetails.php @@ -353,6 +353,7 @@ public function setStopovers($stopovers) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -363,6 +364,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -374,6 +376,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -388,6 +391,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/FlightadditionaldetailsPassengers.php b/MerchantApi/Lib/Model/FlightadditionaldetailsPassengers.php index 611ccf4..e55a55e 100644 --- a/MerchantApi/Lib/Model/FlightadditionaldetailsPassengers.php +++ b/MerchantApi/Lib/Model/FlightadditionaldetailsPassengers.php @@ -280,6 +280,7 @@ public function setSeatNumber($seat_number) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -290,6 +291,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -301,6 +303,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -315,6 +318,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/HateoasLinks.php b/MerchantApi/Lib/Model/HateoasLinks.php index a0405b1..2e6a1af 100644 --- a/MerchantApi/Lib/Model/HateoasLinks.php +++ b/MerchantApi/Lib/Model/HateoasLinks.php @@ -138,6 +138,7 @@ public function setLinks($_links) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -148,6 +149,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -159,6 +161,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -173,6 +176,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/HateoaslinksLinks.php b/MerchantApi/Lib/Model/HateoaslinksLinks.php index 1af27b5..35e139b 100644 --- a/MerchantApi/Lib/Model/HateoaslinksLinks.php +++ b/MerchantApi/Lib/Model/HateoaslinksLinks.php @@ -190,6 +190,7 @@ public function setMethod($method) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -200,6 +201,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -211,6 +213,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -225,6 +228,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/InlineResponse200.php b/MerchantApi/Lib/Model/InlineResponse200.php index d760293..4e67494 100644 --- a/MerchantApi/Lib/Model/InlineResponse200.php +++ b/MerchantApi/Lib/Model/InlineResponse200.php @@ -144,6 +144,7 @@ public function setItems($items) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -154,6 +155,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -165,6 +167,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -179,6 +182,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/Metadata.php b/MerchantApi/Lib/Model/Metadata.php index 285b9d0..881258c 100644 --- a/MerchantApi/Lib/Model/Metadata.php +++ b/MerchantApi/Lib/Model/Metadata.php @@ -105,6 +105,7 @@ public function valid() * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -115,6 +116,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -126,6 +128,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -140,6 +143,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/OrderItem.php b/MerchantApi/Lib/Model/OrderItem.php index 41e42c8..5601c82 100644 --- a/MerchantApi/Lib/Model/OrderItem.php +++ b/MerchantApi/Lib/Model/OrderItem.php @@ -452,6 +452,7 @@ public function setAdditionalDetails($additional_details) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -462,6 +463,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -473,6 +475,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -487,6 +490,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/OrderItemAdditionalDetails.php b/MerchantApi/Lib/Model/OrderItemAdditionalDetails.php index b680d6c..aaf8a74 100644 --- a/MerchantApi/Lib/Model/OrderItemAdditionalDetails.php +++ b/MerchantApi/Lib/Model/OrderItemAdditionalDetails.php @@ -162,6 +162,7 @@ public function setType($type) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -172,6 +173,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -183,6 +185,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -197,6 +200,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/OrderShipping.php b/MerchantApi/Lib/Model/OrderShipping.php index 36bfe9b..0f4f027 100644 --- a/MerchantApi/Lib/Model/OrderShipping.php +++ b/MerchantApi/Lib/Model/OrderShipping.php @@ -190,6 +190,7 @@ public function setAddress($address) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -200,6 +201,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -211,6 +213,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -225,6 +228,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/OrderShippingTracking.php b/MerchantApi/Lib/Model/OrderShippingTracking.php index cd6026d..6e25052 100644 --- a/MerchantApi/Lib/Model/OrderShippingTracking.php +++ b/MerchantApi/Lib/Model/OrderShippingTracking.php @@ -229,6 +229,7 @@ public function setCarrier($carrier) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -239,6 +240,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -250,6 +252,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -264,6 +267,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/Refund.php b/MerchantApi/Lib/Model/Refund.php index 4bc1c84..0708944 100644 --- a/MerchantApi/Lib/Model/Refund.php +++ b/MerchantApi/Lib/Model/Refund.php @@ -293,6 +293,7 @@ public function setMetadata($metadata) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -303,6 +304,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -314,6 +316,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -328,6 +331,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/Settlement.php b/MerchantApi/Lib/Model/Settlement.php index 664af04..c0aa99b 100644 --- a/MerchantApi/Lib/Model/Settlement.php +++ b/MerchantApi/Lib/Model/Settlement.php @@ -242,6 +242,7 @@ public function setTransactions($transactions) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -252,6 +253,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -263,6 +265,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -277,6 +280,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/SettlementTransactions.php b/MerchantApi/Lib/Model/SettlementTransactions.php index d68d45f..b0b6905 100644 --- a/MerchantApi/Lib/Model/SettlementTransactions.php +++ b/MerchantApi/Lib/Model/SettlementTransactions.php @@ -190,6 +190,7 @@ public function set($value) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -200,6 +201,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -211,6 +213,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -225,6 +228,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/Shopper.php b/MerchantApi/Lib/Model/Shopper.php index 657087b..3f2b1cd 100644 --- a/MerchantApi/Lib/Model/Shopper.php +++ b/MerchantApi/Lib/Model/Shopper.php @@ -441,6 +441,7 @@ public function setBillingAddress($billing_address) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -451,6 +452,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -462,6 +464,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -476,6 +479,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/ShopperStatistics.php b/MerchantApi/Lib/Model/ShopperStatistics.php index 74a950f..a963ffe 100644 --- a/MerchantApi/Lib/Model/ShopperStatistics.php +++ b/MerchantApi/Lib/Model/ShopperStatistics.php @@ -439,6 +439,7 @@ public function setFraudCheckResult($fraud_check_result) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -449,6 +450,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -460,6 +462,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -474,6 +477,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/MerchantApi/Lib/Model/Token.php b/MerchantApi/Lib/Model/Token.php index e69ff66..84181ef 100644 --- a/MerchantApi/Lib/Model/Token.php +++ b/MerchantApi/Lib/Model/Token.php @@ -240,6 +240,7 @@ public function setCreatedDate($created_date) * @param integer $offset Offset * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -250,6 +251,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -261,6 +263,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -275,6 +278,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/Model/Config.php b/Model/Config.php index 682416f..5ab5731 100644 --- a/Model/Config.php +++ b/Model/Config.php @@ -381,6 +381,8 @@ public function getValue($key, $storeId = null) $storeId = $this->_storeId; } + $key = $key ?? ''; + $underscored = strtolower(preg_replace('/(.)([A-Z])/', "$1_$2", $key)); $path = "payment/" . self::METHOD_CODE . "/" . $underscored; From 857fcce8b4ab0081ce0242cc8b2ac987aa7664d7 Mon Sep 17 00:00:00 2001 From: mahbub-zip <62676065+mahbub-zip@users.noreply.github.com> Date: Tue, 31 May 2022 09:34:30 +1000 Subject: [PATCH 2/2] update version no --- composer.json | 2 +- etc/module.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 0b230ac..411fd35 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "zip/magento2", "description": "Zip Payment Module for Magento 2", - "version": "1.1.11", + "version": "1.1.12", "type": "magento2-module", "license": [ "OSL-3.0" diff --git a/etc/module.xml b/etc/module.xml index 54d039c..d4d8c22 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -10,7 +10,7 @@ */ --> - +