Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress type deprecation warnings for ArrayAccess on PHP 8.1 #12

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "thewirecutter/paapi5-php-sdk",
"version": "1.1.1",
"version": "1.1.2",
"description": "ProductAdvertisingAPI 5.0 PHP SDK",
"keywords": [
"amazon",
Expand Down
8 changes: 6 additions & 2 deletions src/com/amazon/paapi5/v1/BrowseNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ public function getModelName()
return self::$swaggerModelName;
}







/**
* Associative array for storing property values
Expand Down Expand Up @@ -401,6 +401,7 @@ public function setSalesRank($salesRank)
*
* @return boolean
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
Expand All @@ -413,6 +414,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
Expand All @@ -426,6 +428,7 @@ public function offsetGet($offset)
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
Expand All @@ -442,6 +445,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
Expand Down
8 changes: 6 additions & 2 deletions src/com/amazon/paapi5/v1/BrowseNodeAncestor.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ public function getModelName()
return self::$swaggerModelName;
}







/**
* Associative array for storing property values
Expand Down Expand Up @@ -311,6 +311,7 @@ public function setId($id)
*
* @return boolean
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
Expand All @@ -323,6 +324,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
Expand All @@ -336,6 +338,7 @@ public function offsetGet($offset)
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
Expand All @@ -352,6 +355,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
Expand Down
8 changes: 6 additions & 2 deletions src/com/amazon/paapi5/v1/BrowseNodeChild.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ public function getModelName()
return self::$swaggerModelName;
}







/**
* Associative array for storing property values
Expand Down Expand Up @@ -281,6 +281,7 @@ public function setId($id)
*
* @return boolean
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
Expand All @@ -293,6 +294,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
Expand All @@ -306,6 +308,7 @@ public function offsetGet($offset)
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
Expand All @@ -322,6 +325,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
Expand Down
8 changes: 6 additions & 2 deletions src/com/amazon/paapi5/v1/BrowseNodeInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ public function getModelName()
return self::$swaggerModelName;
}







/**
* Associative array for storing property values
Expand Down Expand Up @@ -251,6 +251,7 @@ public function setWebsiteSalesRank($websiteSalesRank)
*
* @return boolean
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
Expand All @@ -263,6 +264,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
Expand All @@ -276,6 +278,7 @@ public function offsetGet($offset)
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
Expand All @@ -292,6 +295,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
Expand Down
8 changes: 6 additions & 2 deletions src/com/amazon/paapi5/v1/BrowseNodesResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ public function getModelName()
return self::$swaggerModelName;
}







/**
* Associative array for storing property values
Expand Down Expand Up @@ -221,6 +221,7 @@ public function setBrowseNodes($browseNodes)
*
* @return boolean
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
Expand All @@ -233,6 +234,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
Expand All @@ -246,6 +248,7 @@ public function offsetGet($offset)
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
Expand All @@ -262,6 +265,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
Expand Down
8 changes: 6 additions & 2 deletions src/com/amazon/paapi5/v1/ByLineInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ public function getModelName()
return self::$swaggerModelName;
}







/**
* Associative array for storing property values
Expand Down Expand Up @@ -281,6 +281,7 @@ public function setManufacturer($manufacturer)
*
* @return boolean
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
Expand All @@ -293,6 +294,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
Expand All @@ -306,6 +308,7 @@ public function offsetGet($offset)
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
Expand All @@ -322,6 +325,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
Expand Down
8 changes: 6 additions & 2 deletions src/com/amazon/paapi5/v1/Classifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ public function getModelName()
return self::$swaggerModelName;
}







/**
* Associative array for storing property values
Expand Down Expand Up @@ -251,6 +251,7 @@ public function setProductGroup($productGroup)
*
* @return boolean
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
Expand All @@ -263,6 +264,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
Expand All @@ -276,6 +278,7 @@ public function offsetGet($offset)
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
Expand All @@ -292,6 +295,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
Expand Down
8 changes: 6 additions & 2 deletions src/com/amazon/paapi5/v1/ContentInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ public function getModelName()
return self::$swaggerModelName;
}







/**
* Associative array for storing property values
Expand Down Expand Up @@ -311,6 +311,7 @@ public function setPublicationDate($publicationDate)
*
* @return boolean
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
Expand All @@ -323,6 +324,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
Expand All @@ -336,6 +338,7 @@ public function offsetGet($offset)
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
Expand All @@ -352,6 +355,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
Expand Down
Loading