Skip to content

Commit 51cc95a

Browse files
committed
chore: rebuilt with latest generator
1 parent 5f90fe4 commit 51cc95a

17 files changed

+45
-33
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ DOCQA_DOCKER_COMMAND=docker run --init --interactive --rm --user "$(shell id -u)
1313
endif
1414

1515
ifndef PHPQA_DOCKER_COMMAND
16-
PHPQA_DOCKER_IMAGE=jakzal/phpqa:1.41-php${BUILD_ENV}-alpine
16+
PHPQA_DOCKER_IMAGE=jakzal/phpqa:1.52-php${BUILD_ENV}-alpine
1717
PHPQA_DOCKER_COMMAND=docker run --init --interactive --rm --env "COMPOSER_CACHE_DIR=/composer/cache" --user "$(shell id -u):$(shell id -g)" --tmpfs /tmp --volume "$(shell pwd):/project" --volume "${HOME}/.composer:/composer" --workdir /project ${PHPQA_DOCKER_IMAGE}
1818
endif
1919

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,5 @@ [email protected]
116116

117117
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
118118

119-
- API version: `1.0.2`
119+
- API version: `1.0.3`
120120
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}
2020
],
2121
"require": {
22-
"php": "^7.2",
22+
"php": "^7.4 || ^8.0",
2323
"ext-json": "*",
2424
"ext-mbstring": "*",
2525
"guzzlehttp/guzzle": "^6.2"

src/Api/UserApi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ static function ($exception): void {
260260
*
261261
* @throws \InvalidArgumentException
262262
*/
263-
public function getSavedRequest($username, $after = null, $before = null, $limit = 25): \GuzzleHttp\Psr7\Request
263+
public function getSavedRequest($username, $after = null, $before = null, $limit = 25): Request
264264
{
265265
// verify the required parameter 'username' is set
266266
if ($username === null || (\is_array($username) && \count($username) === 0)) {
@@ -532,7 +532,7 @@ static function ($exception): void {
532532
*
533533
* @throws \InvalidArgumentException
534534
*/
535-
public function meRequest(): \GuzzleHttp\Psr7\Request
535+
public function meRequest(): Request
536536
{
537537
$resourcePath = '/me';
538538
$formParams = [];

src/Configuration.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -373,11 +373,11 @@ public static function setDefaultConfiguration(self $config): void
373373
*/
374374
public static function toDebugReport(): string
375375
{
376-
$report = 'PHP SDK (Sigwin\RedditClient) Debug Report:'.PHP_EOL;
377-
$report .= ' OS: '.php_uname().PHP_EOL;
378-
$report .= ' PHP Version: '.PHP_VERSION.PHP_EOL;
379-
$report .= ' The version of the OpenAPI document: 1.0.2'.PHP_EOL;
380-
$report .= ' Temp Folder Path: '.self::getDefaultConfiguration()->getTempFolderPath().PHP_EOL;
376+
$report = 'PHP SDK (Sigwin\RedditClient) Debug Report:'.\PHP_EOL;
377+
$report .= ' OS: '.php_uname().\PHP_EOL;
378+
$report .= ' PHP Version: '.\PHP_VERSION.\PHP_EOL;
379+
$report .= ' The version of the OpenAPI document: 1.0.3'.\PHP_EOL;
380+
$report .= ' Temp Folder Path: '.self::getDefaultConfiguration()->getTempFolderPath().\PHP_EOL;
381381

382382
return $report;
383383
}

src/Model/Listing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function __toString(): string
127127
{
128128
return json_encode(
129129
ObjectSerializer::sanitizeForSerialization($this),
130-
JSON_PRETTY_PRINT
130+
\JSON_PRETTY_PRINT
131131
);
132132
}
133133

src/Model/ListingEnvelope.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function __toString(): string
111111
{
112112
return json_encode(
113113
ObjectSerializer::sanitizeForSerialization($this),
114-
JSON_PRETTY_PRINT
114+
\JSON_PRETTY_PRINT
115115
);
116116
}
117117

@@ -241,8 +241,10 @@ public function setKind($kind): self
241241

242242
/**
243243
* Gets data.
244+
*
245+
* @return \Sigwin\RedditClient\Model\Listing
244246
*/
245-
public function getData(): \Sigwin\RedditClient\Model\Listing
247+
public function getData(): Listing
246248
{
247249
return $this->container['data'];
248250
}

src/Model/Me.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function __toString(): string
109109
{
110110
return json_encode(
111111
ObjectSerializer::sanitizeForSerialization($this),
112-
JSON_PRETTY_PRINT
112+
\JSON_PRETTY_PRINT
113113
);
114114
}
115115

src/Model/Thing.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function __toString(): string
112112
{
113113
return json_encode(
114114
ObjectSerializer::sanitizeForSerialization($this),
115-
JSON_PRETTY_PRINT
115+
\JSON_PRETTY_PRINT
116116
);
117117
}
118118

@@ -243,8 +243,10 @@ public function setKind($kind): self
243243

244244
/**
245245
* Gets data.
246+
*
247+
* @return \Sigwin\RedditClient\Model\ThingData
246248
*/
247-
public function getData(): \Sigwin\RedditClient\Model\ThingData
249+
public function getData(): ThingData
248250
{
249251
return $this->container['data'];
250252
}

src/Model/ThingData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public function __toString(): string
187187
{
188188
return json_encode(
189189
ObjectSerializer::sanitizeForSerialization($this),
190-
JSON_PRETTY_PRINT
190+
\JSON_PRETTY_PRINT
191191
);
192192
}
193193

0 commit comments

Comments
 (0)