From 2fa87d3a7c3b689224c95734c8ec87488c468ee7 Mon Sep 17 00:00:00 2001
From: San <34004129+sank3@users.noreply.github.com>
Date: Thu, 30 Dec 2021 11:35:46 +0530
Subject: [PATCH 1/3] Update CreateContact.php

---
 lib/Model/CreateContact.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Model/CreateContact.php b/lib/Model/CreateContact.php
index 5c46cc14..4572e96e 100644
--- a/lib/Model/CreateContact.php
+++ b/lib/Model/CreateContact.php
@@ -414,7 +414,7 @@ public function setSmtpBlacklistSender($smtpBlacklistSender)
      *
      * @return boolean
      */
-    public function offsetExists($offset)
+    public function offsetExists($offset):bool
     {
         return isset($this->container[$offset]);
     }

From 083e36cc8e402f498571ce944f98889fa6e0c21f Mon Sep 17 00:00:00 2001
From: San <34004129+sank3@users.noreply.github.com>
Date: Thu, 30 Dec 2021 14:12:20 +0530
Subject: [PATCH 2/3] PHP-8.1-warnings

return type should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
---
 lib/Model/CreateContact.php            | 4 ++--
 lib/Model/CreateUpdateContactModel.php | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/Model/CreateContact.php b/lib/Model/CreateContact.php
index 4572e96e..f5b26cd8 100644
--- a/lib/Model/CreateContact.php
+++ b/lib/Model/CreateContact.php
@@ -439,7 +439,7 @@ public function offsetGet($offset)
      *
      * @return void
      */
-    public function offsetSet($offset, $value)
+    public function offsetSet($offset, $value):void
     {
         if (is_null($offset)) {
             $this->container[] = $value;
@@ -455,7 +455,7 @@ public function offsetSet($offset, $value)
      *
      * @return void
      */
-    public function offsetUnset($offset)
+    public function offsetUnset($offset):void
     {
         unset($this->container[$offset]);
     }
diff --git a/lib/Model/CreateUpdateContactModel.php b/lib/Model/CreateUpdateContactModel.php
index fced0ded..55d119d9 100644
--- a/lib/Model/CreateUpdateContactModel.php
+++ b/lib/Model/CreateUpdateContactModel.php
@@ -234,7 +234,7 @@ public function setId($id)
      *
      * @return boolean
      */
-    public function offsetExists($offset)
+    public function offsetExists($offset):bool
     {
         return isset($this->container[$offset]);
     }
@@ -259,7 +259,7 @@ public function offsetGet($offset)
      *
      * @return void
      */
-    public function offsetSet($offset, $value)
+    public function offsetSet($offset, $value):void
     {
         if (is_null($offset)) {
             $this->container[] = $value;
@@ -275,7 +275,7 @@ public function offsetSet($offset, $value)
      *
      * @return void
      */
-    public function offsetUnset($offset)
+    public function offsetUnset($offset):void
     {
         unset($this->container[$offset]);
     }

From 3f2f8046583b3a8ac70a7509276e9da1db2f7781 Mon Sep 17 00:00:00 2001
From: San <34004129+sank3@users.noreply.github.com>
Date: Tue, 4 Jan 2022 11:53:51 +0530
Subject: [PATCH 3/3] Return types

Return type should either be compatible with ArrayAccess return type or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
---
 lib/Model/CreateContact.php            | 4 ++--
 lib/Model/CreateUpdateContactModel.php | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/Model/CreateContact.php b/lib/Model/CreateContact.php
index f5b26cd8..c55f34bf 100644
--- a/lib/Model/CreateContact.php
+++ b/lib/Model/CreateContact.php
@@ -426,7 +426,7 @@ public function offsetExists($offset):bool
      *
      * @return mixed
      */
-    public function offsetGet($offset)
+    public function offsetGet($offset):mixed
     {
         return isset($this->container[$offset]) ? $this->container[$offset] : null;
     }
@@ -465,7 +465,7 @@ public function offsetUnset($offset):void
      *
      * @return string
      */
-    public function __toString()
+    public function __toString():string
     {
         if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
             return json_encode(
diff --git a/lib/Model/CreateUpdateContactModel.php b/lib/Model/CreateUpdateContactModel.php
index 55d119d9..b54b2bba 100644
--- a/lib/Model/CreateUpdateContactModel.php
+++ b/lib/Model/CreateUpdateContactModel.php
@@ -246,7 +246,7 @@ public function offsetExists($offset):bool
      *
      * @return mixed
      */
-    public function offsetGet($offset)
+    public function offsetGet($offset):mixed
     {
         return isset($this->container[$offset]) ? $this->container[$offset] : null;
     }
