Skip to content

Commit

Permalink
Merge pull request #68 from zipMoney/fix/support-php-8.1
Browse files Browse the repository at this point in the history
support php 8.1
  • Loading branch information
mahbub-zip authored May 31, 2022
2 parents 36b59e6 + 857fcce commit 2b95cc7
Show file tree
Hide file tree
Showing 40 changed files with 152 additions and 2 deletions.
4 changes: 4 additions & 0 deletions MerchantApi/Lib/Model/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand All @@ -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;
Expand All @@ -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)) {
Expand All @@ -491,6 +494,7 @@ public function offsetSet($offset, $value)
* @param integer $offset Offset
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
Expand Down
4 changes: 4 additions & 0 deletions MerchantApi/Lib/Model/Authority.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ public function setValue($value)
* @param integer $offset Offset
* @return boolean
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
Expand All @@ -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;
Expand All @@ -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)) {
Expand All @@ -242,6 +245,7 @@ public function offsetSet($offset, $value)
* @param integer $offset Offset
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
Expand Down
4 changes: 4 additions & 0 deletions MerchantApi/Lib/Model/CaptureChargeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ public function setAmount($amount)
* @param integer $offset Offset
* @return boolean
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
Expand All @@ -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;
Expand All @@ -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)) {
Expand All @@ -191,6 +194,7 @@ public function offsetSet($offset, $value)
* @param integer $offset Offset
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
Expand Down
4 changes: 4 additions & 0 deletions MerchantApi/Lib/Model/Charge.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand All @@ -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;
Expand All @@ -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)) {
Expand All @@ -539,6 +542,7 @@ public function offsetSet($offset, $value)
* @param integer $offset Offset
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
Expand Down
4 changes: 4 additions & 0 deletions MerchantApi/Lib/Model/ChargeCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ public function setItems($items)
* @param integer $offset Offset
* @return boolean
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
Expand All @@ -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;
Expand All @@ -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)) {
Expand All @@ -177,6 +180,7 @@ public function offsetSet($offset, $value)
* @param integer $offset Offset
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
Expand Down
4 changes: 4 additions & 0 deletions MerchantApi/Lib/Model/ChargeOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand All @@ -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;
Expand All @@ -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)) {
Expand All @@ -283,6 +286,7 @@ public function offsetSet($offset, $value)
* @param integer $offset Offset
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
Expand Down
4 changes: 4 additions & 0 deletions MerchantApi/Lib/Model/Checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ public function setMetadata($metadata)
* @param integer $offset Offset
* @return boolean
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
Expand All @@ -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;
Expand All @@ -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)) {
Expand All @@ -521,6 +524,7 @@ public function offsetSet($offset, $value)
* @param integer $offset Offset
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
Expand Down
4 changes: 4 additions & 0 deletions MerchantApi/Lib/Model/CheckoutConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand All @@ -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;
Expand All @@ -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)) {
Expand All @@ -176,6 +179,7 @@ public function offsetSet($offset, $value)
* @param integer $offset Offset
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
Expand Down
4 changes: 4 additions & 0 deletions MerchantApi/Lib/Model/CheckoutFeatures.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ public function setTokenisation($tokenisation)
* @param integer $offset Offset
* @return boolean
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
Expand All @@ -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;
Expand All @@ -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)) {
Expand All @@ -168,6 +171,7 @@ public function offsetSet($offset, $value)
* @param integer $offset Offset
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
Expand Down
4 changes: 4 additions & 0 deletions MerchantApi/Lib/Model/CheckoutFeaturesTokenisation.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ public function setRequired($required)
* @param integer $offset Offset
* @return boolean
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
Expand All @@ -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;
Expand All @@ -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)) {
Expand All @@ -168,6 +171,7 @@ public function offsetSet($offset, $value)
* @param integer $offset Offset
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
Expand Down
4 changes: 4 additions & 0 deletions MerchantApi/Lib/Model/CheckoutOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand All @@ -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;
Expand All @@ -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)) {
Expand All @@ -354,6 +357,7 @@ public function offsetSet($offset, $value)
* @param integer $offset Offset
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
Expand Down
4 changes: 4 additions & 0 deletions MerchantApi/Lib/Model/CreateChargeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ public function setMetadata($metadata)
* @param integer $offset Offset
* @return boolean
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
Expand All @@ -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;
Expand All @@ -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)) {
Expand All @@ -348,6 +351,7 @@ public function offsetSet($offset, $value)
* @param integer $offset Offset
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
Expand Down
Loading

0 comments on commit 2b95cc7

Please sign in to comment.