Skip to content

Commit

Permalink
PLT-185: Match return types with ArrayAccess interface (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartiii authored Mar 1, 2023
1 parent a7b7a33 commit 1255ce7
Show file tree
Hide file tree
Showing 58 changed files with 401 additions and 344 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
],
"require": {
"php": ">=5.4",
"php": ">=7.4",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*"
Expand Down
13 changes: 7 additions & 6 deletions lib/Model/AdditionalInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0
*
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.26
*/
Expand Down Expand Up @@ -169,9 +169,9 @@ public function getModelName()
return self::$swaggerModelName;
}







/**
* Associative array for storing property values
Expand Down Expand Up @@ -295,7 +295,7 @@ public function setDoorCode($door_code)
*
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -307,6 +307,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
Expand All @@ -320,7 +321,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;
Expand All @@ -336,7 +337,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->container[$offset]);
}
Expand Down
13 changes: 7 additions & 6 deletions lib/Model/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0
*
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.26
*/
Expand Down Expand Up @@ -219,9 +219,9 @@ public function getModelName()
return self::$swaggerModelName;
}







/**
* Associative array for storing property values
Expand Down Expand Up @@ -595,7 +595,7 @@ public function setStreetNumber($street_number)
*
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -607,6 +607,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
Expand All @@ -620,7 +621,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;
Expand All @@ -636,7 +637,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->container[$offset]);
}
Expand Down
13 changes: 7 additions & 6 deletions lib/Model/Any.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0
*
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.26
*/
Expand Down Expand Up @@ -163,9 +163,9 @@ public function getModelName()
return self::$swaggerModelName;
}







/**
* Associative array for storing property values
Expand Down Expand Up @@ -273,7 +273,7 @@ public function setValue($value)
*
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -285,6 +285,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
Expand All @@ -298,7 +299,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;
Expand All @@ -314,7 +315,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->container[$offset]);
}
Expand Down
13 changes: 7 additions & 6 deletions lib/Model/BillingItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0
*
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.26
*/
Expand Down Expand Up @@ -164,9 +164,9 @@ public function getModelName()
return self::$swaggerModelName;
}







/**
* Associative array for storing property values
Expand Down Expand Up @@ -265,7 +265,7 @@ public function setDescription($description)
*
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -277,6 +277,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
Expand All @@ -290,7 +291,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;
Expand All @@ -306,7 +307,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->container[$offset]);
}
Expand Down
13 changes: 7 additions & 6 deletions lib/Model/CarrierAddon.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0
*
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.26
*/
Expand Down Expand Up @@ -168,9 +168,9 @@ public function getModelName()
return self::$swaggerModelName;
}







/**
* Associative array for storing property values
Expand Down Expand Up @@ -294,7 +294,7 @@ public function setName($name)
*
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -306,6 +306,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
Expand All @@ -319,7 +320,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;
Expand All @@ -335,7 +336,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->container[$offset]);
}
Expand Down
13 changes: 7 additions & 6 deletions lib/Model/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0
*
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.26
*/
Expand Down Expand Up @@ -204,9 +204,9 @@ public function getModelName()
return self::$swaggerModelName;
}







/**
* Associative array for storing property values
Expand Down Expand Up @@ -505,7 +505,7 @@ public function setVouchers($vouchers)
*
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -517,6 +517,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
Expand All @@ -530,7 +531,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;
Expand All @@ -546,7 +547,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->container[$offset]);
}
Expand Down
Loading

0 comments on commit 1255ce7

Please sign in to comment.