Skip to content

Commit

Permalink
Merge pull request #19 from talon-one/sc-26774-update-php-sdk
Browse files Browse the repository at this point in the history
fix: PHP 8.1 incompatibility issues in SDK
  • Loading branch information
rubyjohn93 authored Aug 24, 2023
2 parents a6e7140 + 9592db1 commit 99ce1f1
Show file tree
Hide file tree
Showing 391 changed files with 1,556 additions and 1,168 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version:
- Package version: 5.0.0
- Package version: 5.1.0
- Build package: org.openapitools.codegen.languages.PhpClientCodegen

## Requirements
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "talon-one/talon-one-client",
"type": "library",
"version": "5.0.0",
"version": "5.1.0",
"description": "Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`",
"keywords": [
"talon-one",
Expand Down
4 changes: 2 additions & 2 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'OpenAPI-Generator/5.0.0/PHP';
protected $userAgent = 'OpenAPI-Generator/5.1.0/PHP';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -397,7 +397,7 @@ public static function toDebugReport()
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' The version of the OpenAPI document: ' . PHP_EOL;
$report .= ' SDK Package Version: 5.0.0' . PHP_EOL;
$report .= ' SDK Package Version: 5.1.0' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
7 changes: 4 additions & 3 deletions lib/Model/APIError.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public function setSource($source)
*
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -312,6 +312,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
Expand All @@ -325,7 +326,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 @@ -341,7 +342,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->container[$offset]);
}
Expand Down
7 changes: 4 additions & 3 deletions lib/Model/AcceptCouponEffectProps.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public function setValue($value)
*
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -250,6 +250,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
Expand All @@ -263,7 +264,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 @@ -279,7 +280,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->container[$offset]);
}
Expand Down
7 changes: 4 additions & 3 deletions lib/Model/AcceptReferralEffectProps.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public function setValue($value)
*
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -250,6 +250,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
Expand All @@ -263,7 +264,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 @@ -279,7 +280,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->container[$offset]);
}
Expand Down
7 changes: 4 additions & 3 deletions lib/Model/AccessLogEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ public function setResponsePayload($responsePayload)
*
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -448,6 +448,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
Expand All @@ -461,7 +462,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 @@ -477,7 +478,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->container[$offset]);
}
Expand Down
7 changes: 4 additions & 3 deletions lib/Model/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ public function setAttributes($attributes)
*
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -831,6 +831,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
Expand All @@ -844,7 +845,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 @@ -860,7 +861,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->container[$offset]);
}
Expand Down
7 changes: 4 additions & 3 deletions lib/Model/AccountAdditionalCost.php
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ public function setType($type)
*
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -527,6 +527,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
Expand All @@ -540,7 +541,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 @@ -556,7 +557,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->container[$offset]);
}
Expand Down
7 changes: 4 additions & 3 deletions lib/Model/AccountAnalytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ public function setLiveLoyaltyPrograms($liveLoyaltyPrograms)
*
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -843,6 +843,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
Expand All @@ -856,7 +857,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 @@ -872,7 +873,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->container[$offset]);
}
Expand Down
7 changes: 4 additions & 3 deletions lib/Model/AccountDashboardStatistic.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ public function setCampaigns($campaigns)
*
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -399,6 +399,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
Expand All @@ -412,7 +413,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 @@ -428,7 +429,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->container[$offset]);
}
Expand Down
7 changes: 4 additions & 3 deletions lib/Model/AccountDashboardStatisticApiCalls.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public function setDatetime($datetime)
*
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -282,6 +282,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
Expand All @@ -295,7 +296,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 @@ -311,7 +312,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->container[$offset]);
}
Expand Down
7 changes: 4 additions & 3 deletions lib/Model/AccountDashboardStatisticCampaigns.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public function setEndingSoon($endingSoon)
*
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -282,6 +282,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
Expand All @@ -295,7 +296,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 @@ -311,7 +312,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 99ce1f1

Please sign in to comment.