Skip to content

Commit dbd0eea

Browse files
authored
Merge pull request #9 from noahott/master
Suppress deprecated function notices on PHP 8.1
2 parents 353a155 + b2b28c1 commit dbd0eea

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

src/com/amazon/paapi5/v1/ErrorData.php

+4
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ public function setMessage($message)
251251
*
252252
* @return boolean
253253
*/
254+
#[\ReturnTypeWillChange]
254255
public function offsetExists($offset)
255256
{
256257
return isset($this->container[$offset]);
@@ -263,6 +264,7 @@ public function offsetExists($offset)
263264
*
264265
* @return mixed
265266
*/
267+
#[\ReturnTypeWillChange]
266268
public function offsetGet($offset)
267269
{
268270
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -276,6 +278,7 @@ public function offsetGet($offset)
276278
*
277279
* @return void
278280
*/
281+
#[\ReturnTypeWillChange]
279282
public function offsetSet($offset, $value)
280283
{
281284
if (is_null($offset)) {
@@ -292,6 +295,7 @@ public function offsetSet($offset, $value)
292295
*
293296
* @return void
294297
*/
298+
#[\ReturnTypeWillChange]
295299
public function offsetUnset($offset)
296300
{
297301
unset($this->container[$offset]);

src/com/amazon/paapi5/v1/GetItemsRequest.php

+4
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,7 @@ public function setResources($resources)
560560
*
561561
* @return boolean
562562
*/
563+
#[\ReturnTypeWillChange]
563564
public function offsetExists($offset)
564565
{
565566
return isset($this->container[$offset]);
@@ -572,6 +573,7 @@ public function offsetExists($offset)
572573
*
573574
* @return mixed
574575
*/
576+
#[\ReturnTypeWillChange]
575577
public function offsetGet($offset)
576578
{
577579
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -585,6 +587,7 @@ public function offsetGet($offset)
585587
*
586588
* @return void
587589
*/
590+
#[\ReturnTypeWillChange]
588591
public function offsetSet($offset, $value)
589592
{
590593
if (is_null($offset)) {
@@ -601,6 +604,7 @@ public function offsetSet($offset, $value)
601604
*
602605
* @return void
603606
*/
607+
#[\ReturnTypeWillChange]
604608
public function offsetUnset($offset)
605609
{
606610
unset($this->container[$offset]);

src/com/amazon/paapi5/v1/ProductAdvertisingAPIClientException.php

+4
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ public function setErrors($errors)
221221
*
222222
* @return boolean
223223
*/
224+
#[\ReturnTypeWillChange]
224225
public function offsetExists($offset)
225226
{
226227
return isset($this->container[$offset]);
@@ -233,6 +234,7 @@ public function offsetExists($offset)
233234
*
234235
* @return mixed
235236
*/
237+
#[\ReturnTypeWillChange]
236238
public function offsetGet($offset)
237239
{
238240
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -246,6 +248,7 @@ public function offsetGet($offset)
246248
*
247249
* @return void
248250
*/
251+
#[\ReturnTypeWillChange]
249252
public function offsetSet($offset, $value)
250253
{
251254
if (is_null($offset)) {
@@ -262,6 +265,7 @@ public function offsetSet($offset, $value)
262265
*
263266
* @return void
264267
*/
268+
#[\ReturnTypeWillChange]
265269
public function offsetUnset($offset)
266270
{
267271
unset($this->container[$offset]);

0 commit comments

Comments
 (0)