forked from loafle/openapi-generator-original
[php-*] Explicitly declare nullable parameters (#20524)
* [php-nextgen] Explicitly declare nullable parameters explicitly * Fix some deprecation warnings in other php generators * [php-nextgen] Fix PHP 8.4 deprecation warnings with nullable/optional array parameters
This commit is contained in:
@@ -111,9 +111,9 @@ class QueryApi
|
||||
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
|
||||
*/
|
||||
public function __construct(
|
||||
ClientInterface $client = null,
|
||||
Configuration $config = null,
|
||||
HeaderSelector $selector = null,
|
||||
?ClientInterface $client = null,
|
||||
?Configuration $config = null,
|
||||
?HeaderSelector $selector = null,
|
||||
int $hostIndex = 0
|
||||
) {
|
||||
$this->client = $client ?: new Client();
|
||||
@@ -1853,7 +1853,7 @@ class QueryApi
|
||||
* @return string
|
||||
*/
|
||||
public function testQueryStyleFormExplodeFalseArrayInteger(
|
||||
array $query_object = null,
|
||||
?array $query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleFormExplodeFalseArrayInteger'][0]
|
||||
): string
|
||||
{
|
||||
@@ -1874,7 +1874,7 @@ class QueryApi
|
||||
* @return array of string, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function testQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(
|
||||
array $query_object = null,
|
||||
?array $query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleFormExplodeFalseArrayInteger'][0]
|
||||
): array
|
||||
{
|
||||
@@ -2001,7 +2001,7 @@ class QueryApi
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testQueryStyleFormExplodeFalseArrayIntegerAsync(
|
||||
array $query_object = null,
|
||||
?array $query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleFormExplodeFalseArrayInteger'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
@@ -2025,7 +2025,7 @@ class QueryApi
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testQueryStyleFormExplodeFalseArrayIntegerAsyncWithHttpInfo(
|
||||
array $query_object = null,
|
||||
?array $query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleFormExplodeFalseArrayInteger'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
@@ -2078,7 +2078,7 @@ class QueryApi
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
public function testQueryStyleFormExplodeFalseArrayIntegerRequest(
|
||||
array $query_object = null,
|
||||
?array $query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleFormExplodeFalseArrayInteger'][0]
|
||||
): Request
|
||||
{
|
||||
@@ -2171,7 +2171,7 @@ class QueryApi
|
||||
* @return string
|
||||
*/
|
||||
public function testQueryStyleFormExplodeFalseArrayString(
|
||||
array $query_object = null,
|
||||
?array $query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleFormExplodeFalseArrayString'][0]
|
||||
): string
|
||||
{
|
||||
@@ -2192,7 +2192,7 @@ class QueryApi
|
||||
* @return array of string, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function testQueryStyleFormExplodeFalseArrayStringWithHttpInfo(
|
||||
array $query_object = null,
|
||||
?array $query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleFormExplodeFalseArrayString'][0]
|
||||
): array
|
||||
{
|
||||
@@ -2319,7 +2319,7 @@ class QueryApi
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testQueryStyleFormExplodeFalseArrayStringAsync(
|
||||
array $query_object = null,
|
||||
?array $query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleFormExplodeFalseArrayString'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
@@ -2343,7 +2343,7 @@ class QueryApi
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testQueryStyleFormExplodeFalseArrayStringAsyncWithHttpInfo(
|
||||
array $query_object = null,
|
||||
?array $query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleFormExplodeFalseArrayString'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
@@ -2396,7 +2396,7 @@ class QueryApi
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
public function testQueryStyleFormExplodeFalseArrayStringRequest(
|
||||
array $query_object = null,
|
||||
?array $query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleFormExplodeFalseArrayString'][0]
|
||||
): Request
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user