[php] Follow PHP8.4 update: declared nullable parameters explicitly (#20243)

* explictly declared nullable to parameters with "null" default value

* generated php sample

* fixed unnecessary "?"

* re-generated sample
This commit is contained in:
Hiromi Hishida 2024-12-06 15:33:55 +09:00 committed by GitHub
parent ba5ecbccde
commit 474307675b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
111 changed files with 458 additions and 458 deletions

View File

@ -503,7 +503,7 @@ class Configuration
* @param array|null $variables hash of variable and the corresponding value (optional) * @param array|null $variables hash of variable and the corresponding value (optional)
* @return string URL based on host settings * @return string URL based on host settings
*/ */
public static function getHostString(array $hostSettings, $hostIndex, array $variables = null) public static function getHostString(array $hostSettings, $hostIndex, ?array $variables = null)
{ {
if (null === $variables) { if (null === $variables) {
$variables = []; $variables = [];

View File

@ -49,8 +49,8 @@ class ObjectSerializer
* Serialize data * Serialize data
* *
* @param mixed $data the data to serialize * @param mixed $data the data to serialize
* @param string $type the OpenAPIToolsType of the data * @param string|null $type the OpenAPIToolsType of the data
* @param string $format the format of the OpenAPITools type of the data * @param string|null $format the format of the OpenAPITools type of the data
* *
* @return scalar|object|array|null serialized form of $data * @return scalar|object|array|null serialized form of $data
*/ */
@ -395,7 +395,7 @@ class ObjectSerializer
* *
* @param mixed $data object or primitive to be deserialized * @param mixed $data object or primitive to be deserialized
* @param string $class class name is passed as a string * @param string $class class name is passed as a string
* @param string[] $httpHeaders HTTP headers * @param string[]|null $httpHeaders HTTP headers
* *
* @return object|array|null a single or an array of $class instances * @return object|array|null a single or an array of $class instances
*/ */

View File

@ -76,10 +76,10 @@ use {{invokerPackage}}\ObjectSerializer;
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/ */
public function __construct( public function __construct(
ClientInterface $client = null, ?ClientInterface $client = null,
Configuration $config = null, ?Configuration $config = null,
HeaderSelector $selector = null, ?HeaderSelector $selector = null,
$hostIndex = 0 int $hostIndex = 0
) { ) {
$this->client = $client ?: new Client(); $this->client = $client ?: new Client();
$this->config = $config ?: Configuration::getDefaultConfiguration(); $this->config = $config ?: Configuration::getDefaultConfiguration();
@ -152,7 +152,7 @@ use {{invokerPackage}}\ObjectSerializer;
{{/-last}} {{/-last}}
{{/servers}} {{/servers}}
{{#allParams}} {{#allParams}}
* @param {{{dataType}}} ${{paramName}}{{#description}} {{.}}{{/description}}{{^description}} {{paramName}}{{/description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} * @param {{{dataType}}}{{^required}}|null{{/required}} ${{paramName}}{{#description}} {{.}}{{/description}}{{^description}} {{paramName}}{{/description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}}
{{/allParams}} {{/allParams}}
{{#servers}} {{#servers}}
{{#-first}} {{#-first}}
@ -211,7 +211,7 @@ use {{invokerPackage}}\ObjectSerializer;
{{/-last}} {{/-last}}
{{/servers}} {{/servers}}
{{#allParams}} {{#allParams}}
* @param {{{dataType}}} ${{paramName}}{{#description}} {{.}}{{/description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} * @param {{{dataType}}}{{^required}}|null{{/required}} ${{paramName}}{{#description}} {{.}}{{/description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}}
{{/allParams}} {{/allParams}}
{{#servers}} {{#servers}}
{{#-first}} {{#-first}}
@ -395,7 +395,7 @@ use {{invokerPackage}}\ObjectSerializer;
{{/-last}} {{/-last}}
{{/servers}} {{/servers}}
{{#allParams}} {{#allParams}}
* @param {{{dataType}}} ${{paramName}}{{#description}} {{.}}{{/description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} * @param {{{dataType}}}{{^required}}|null{{/required}} ${{paramName}}{{#description}} {{.}}{{/description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}}
{{/allParams}} {{/allParams}}
{{#servers}} {{#servers}}
{{#-first}} {{#-first}}
@ -457,7 +457,7 @@ use {{invokerPackage}}\ObjectSerializer;
{{/-last}} {{/-last}}
{{/servers}} {{/servers}}
{{#allParams}} {{#allParams}}
* @param {{{dataType}}} ${{paramName}}{{#description}} {{.}}{{/description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} * @param {{{dataType}}}{{^required}}|null{{/required}} ${{paramName}}{{#description}} {{.}}{{/description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}}
{{/allParams}} {{/allParams}}
{{#servers}} {{#servers}}
{{#-first}} {{#-first}}
@ -547,7 +547,7 @@ use {{invokerPackage}}\ObjectSerializer;
{{/-last}} {{/-last}}
{{/servers}} {{/servers}}
{{#allParams}} {{#allParams}}
* @param {{{dataType}}} ${{paramName}}{{#description}} {{.}}{{/description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} * @param {{{dataType}}}{{^required}}|null{{/required}} ${{paramName}}{{#description}} {{.}}{{/description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}}
{{/allParams}} {{/allParams}}
{{#servers}} {{#servers}}
{{#-first}} {{#-first}}

View File

@ -58,8 +58,8 @@ class ApiException extends RequestException
public function __construct( public function __construct(
$message, $message,
RequestInterface $request, RequestInterface $request,
ResponseInterface $response = null, ?ResponseInterface $response = null,
Exception $previous = null ?Exception $previous = null
) { ) {
parent::__construct($message, $request, $previous); parent::__construct($message, $request, $previous);
if ($response) { if ($response) {

View File

@ -95,13 +95,13 @@ use function sprintf;
protected $streamFactory; protected $streamFactory;
public function __construct( public function __construct(
ClientInterface $httpClient = null, ?ClientInterface $httpClient = null,
Configuration $config = null, ?Configuration $config = null,
HttpAsyncClient $httpAsyncClient = null, ?HttpAsyncClient $httpAsyncClient = null,
UriFactoryInterface $uriFactory = null, ?UriFactoryInterface $uriFactory = null,
RequestFactoryInterface $requestFactory = null, ?RequestFactoryInterface $requestFactory = null,
StreamFactoryInterface $streamFactory = null, ?StreamFactoryInterface $streamFactory = null,
HeaderSelector $selector = null, ?HeaderSelector $selector = null,
?array $plugins = null, ?array $plugins = null,
$hostIndex = 0 $hostIndex = 0
) { ) {

View File

@ -231,10 +231,10 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}}{{/parentSchema}}{{^par
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
{{#parentSchema}} {{#parentSchema}}
parent::__construct($data); parent::__construct($data);

View File

@ -83,10 +83,10 @@ class AnotherFakeApi
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/ */
public function __construct( public function __construct(
ClientInterface $client = null, ?ClientInterface $client = null,
Configuration $config = null, ?Configuration $config = null,
HeaderSelector $selector = null, ?HeaderSelector $selector = null,
$hostIndex = 0 int $hostIndex = 0
) { ) {
$this->client = $client ?: new Client(); $this->client = $client ?: new Client();
$this->config = $config ?: Configuration::getDefaultConfiguration(); $this->config = $config ?: Configuration::getDefaultConfiguration();

View File

@ -83,10 +83,10 @@ class DefaultApi
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/ */
public function __construct( public function __construct(
ClientInterface $client = null, ?ClientInterface $client = null,
Configuration $config = null, ?Configuration $config = null,
HeaderSelector $selector = null, ?HeaderSelector $selector = null,
$hostIndex = 0 int $hostIndex = 0
) { ) {
$this->client = $client ?: new Client(); $this->client = $client ?: new Client();
$this->config = $config ?: Configuration::getDefaultConfiguration(); $this->config = $config ?: Configuration::getDefaultConfiguration();

View File

@ -150,10 +150,10 @@ class FakeApi
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/ */
public function __construct( public function __construct(
ClientInterface $client = null, ?ClientInterface $client = null,
Configuration $config = null, ?Configuration $config = null,
HeaderSelector $selector = null, ?HeaderSelector $selector = null,
$hostIndex = 0 int $hostIndex = 0
) { ) {
$this->client = $client ?: new Client(); $this->client = $client ?: new Client();
$this->config = $config ?: Configuration::getDefaultConfiguration(); $this->config = $config ?: Configuration::getDefaultConfiguration();
@ -1114,8 +1114,8 @@ class FakeApi
* test http signature authentication * test http signature authentication
* *
* @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
* @param string $query_1 query parameter (optional) * @param string|null $query_1 query parameter (optional)
* @param string $header_1 header parameter (optional) * @param string|null $header_1 header parameter (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHttpSignatureTest'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHttpSignatureTest'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -1133,8 +1133,8 @@ class FakeApi
* test http signature authentication * test http signature authentication
* *
* @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
* @param string $query_1 query parameter (optional) * @param string|null $query_1 query parameter (optional)
* @param string $header_1 header parameter (optional) * @param string|null $header_1 header parameter (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHttpSignatureTest'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHttpSignatureTest'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -1183,8 +1183,8 @@ class FakeApi
* test http signature authentication * test http signature authentication
* *
* @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
* @param string $query_1 query parameter (optional) * @param string|null $query_1 query parameter (optional)
* @param string $header_1 header parameter (optional) * @param string|null $header_1 header parameter (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHttpSignatureTest'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHttpSignatureTest'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -1206,8 +1206,8 @@ class FakeApi
* test http signature authentication * test http signature authentication
* *
* @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
* @param string $query_1 query parameter (optional) * @param string|null $query_1 query parameter (optional)
* @param string $header_1 header parameter (optional) * @param string|null $header_1 header parameter (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHttpSignatureTest'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHttpSignatureTest'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -1245,8 +1245,8 @@ class FakeApi
* Create request for operation 'fakeHttpSignatureTest' * Create request for operation 'fakeHttpSignatureTest'
* *
* @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
* @param string $query_1 query parameter (optional) * @param string|null $query_1 query parameter (optional)
* @param string $header_1 header parameter (optional) * @param string|null $header_1 header parameter (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHttpSignatureTest'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHttpSignatureTest'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -1352,7 +1352,7 @@ class FakeApi
/** /**
* Operation fakeOuterBooleanSerialize * Operation fakeOuterBooleanSerialize
* *
* @param bool $body Input boolean as post body (optional) * @param bool|null $body Input boolean as post body (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterBooleanSerialize'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterBooleanSerialize'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -1368,7 +1368,7 @@ class FakeApi
/** /**
* Operation fakeOuterBooleanSerializeWithHttpInfo * Operation fakeOuterBooleanSerializeWithHttpInfo
* *
* @param bool $body Input boolean as post body (optional) * @param bool|null $body Input boolean as post body (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterBooleanSerialize'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterBooleanSerialize'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -1491,7 +1491,7 @@ class FakeApi
/** /**
* Operation fakeOuterBooleanSerializeAsync * Operation fakeOuterBooleanSerializeAsync
* *
* @param bool $body Input boolean as post body (optional) * @param bool|null $body Input boolean as post body (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterBooleanSerialize'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterBooleanSerialize'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -1510,7 +1510,7 @@ class FakeApi
/** /**
* Operation fakeOuterBooleanSerializeAsyncWithHttpInfo * Operation fakeOuterBooleanSerializeAsyncWithHttpInfo
* *
* @param bool $body Input boolean as post body (optional) * @param bool|null $body Input boolean as post body (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterBooleanSerialize'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterBooleanSerialize'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -1560,7 +1560,7 @@ class FakeApi
/** /**
* Create request for operation 'fakeOuterBooleanSerialize' * Create request for operation 'fakeOuterBooleanSerialize'
* *
* @param bool $body Input boolean as post body (optional) * @param bool|null $body Input boolean as post body (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterBooleanSerialize'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterBooleanSerialize'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -1645,7 +1645,7 @@ class FakeApi
/** /**
* Operation fakeOuterCompositeSerialize * Operation fakeOuterCompositeSerialize
* *
* @param \OpenAPI\Client\Model\OuterComposite $outer_composite Input composite as post body (optional) * @param \OpenAPI\Client\Model\OuterComposite|null $outer_composite Input composite as post body (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterCompositeSerialize'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterCompositeSerialize'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -1661,7 +1661,7 @@ class FakeApi
/** /**
* Operation fakeOuterCompositeSerializeWithHttpInfo * Operation fakeOuterCompositeSerializeWithHttpInfo
* *
* @param \OpenAPI\Client\Model\OuterComposite $outer_composite Input composite as post body (optional) * @param \OpenAPI\Client\Model\OuterComposite|null $outer_composite Input composite as post body (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterCompositeSerialize'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterCompositeSerialize'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -1784,7 +1784,7 @@ class FakeApi
/** /**
* Operation fakeOuterCompositeSerializeAsync * Operation fakeOuterCompositeSerializeAsync
* *
* @param \OpenAPI\Client\Model\OuterComposite $outer_composite Input composite as post body (optional) * @param \OpenAPI\Client\Model\OuterComposite|null $outer_composite Input composite as post body (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterCompositeSerialize'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterCompositeSerialize'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -1803,7 +1803,7 @@ class FakeApi
/** /**
* Operation fakeOuterCompositeSerializeAsyncWithHttpInfo * Operation fakeOuterCompositeSerializeAsyncWithHttpInfo
* *
* @param \OpenAPI\Client\Model\OuterComposite $outer_composite Input composite as post body (optional) * @param \OpenAPI\Client\Model\OuterComposite|null $outer_composite Input composite as post body (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterCompositeSerialize'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterCompositeSerialize'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -1853,7 +1853,7 @@ class FakeApi
/** /**
* Create request for operation 'fakeOuterCompositeSerialize' * Create request for operation 'fakeOuterCompositeSerialize'
* *
* @param \OpenAPI\Client\Model\OuterComposite $outer_composite Input composite as post body (optional) * @param \OpenAPI\Client\Model\OuterComposite|null $outer_composite Input composite as post body (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterCompositeSerialize'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterCompositeSerialize'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -1938,7 +1938,7 @@ class FakeApi
/** /**
* Operation fakeOuterNumberSerialize * Operation fakeOuterNumberSerialize
* *
* @param float $body Input number as post body (optional) * @param float|null $body Input number as post body (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterNumberSerialize'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterNumberSerialize'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -1954,7 +1954,7 @@ class FakeApi
/** /**
* Operation fakeOuterNumberSerializeWithHttpInfo * Operation fakeOuterNumberSerializeWithHttpInfo
* *
* @param float $body Input number as post body (optional) * @param float|null $body Input number as post body (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterNumberSerialize'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterNumberSerialize'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -2077,7 +2077,7 @@ class FakeApi
/** /**
* Operation fakeOuterNumberSerializeAsync * Operation fakeOuterNumberSerializeAsync
* *
* @param float $body Input number as post body (optional) * @param float|null $body Input number as post body (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterNumberSerialize'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterNumberSerialize'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -2096,7 +2096,7 @@ class FakeApi
/** /**
* Operation fakeOuterNumberSerializeAsyncWithHttpInfo * Operation fakeOuterNumberSerializeAsyncWithHttpInfo
* *
* @param float $body Input number as post body (optional) * @param float|null $body Input number as post body (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterNumberSerialize'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterNumberSerialize'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -2146,7 +2146,7 @@ class FakeApi
/** /**
* Create request for operation 'fakeOuterNumberSerialize' * Create request for operation 'fakeOuterNumberSerialize'
* *
* @param float $body Input number as post body (optional) * @param float|null $body Input number as post body (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterNumberSerialize'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterNumberSerialize'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -2231,7 +2231,7 @@ class FakeApi
/** /**
* Operation fakeOuterStringSerialize * Operation fakeOuterStringSerialize
* *
* @param string $body Input string as post body (optional) * @param string|null $body Input string as post body (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -2247,7 +2247,7 @@ class FakeApi
/** /**
* Operation fakeOuterStringSerializeWithHttpInfo * Operation fakeOuterStringSerializeWithHttpInfo
* *
* @param string $body Input string as post body (optional) * @param string|null $body Input string as post body (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -2370,7 +2370,7 @@ class FakeApi
/** /**
* Operation fakeOuterStringSerializeAsync * Operation fakeOuterStringSerializeAsync
* *
* @param string $body Input string as post body (optional) * @param string|null $body Input string as post body (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -2389,7 +2389,7 @@ class FakeApi
/** /**
* Operation fakeOuterStringSerializeAsyncWithHttpInfo * Operation fakeOuterStringSerializeAsyncWithHttpInfo
* *
* @param string $body Input string as post body (optional) * @param string|null $body Input string as post body (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -2439,7 +2439,7 @@ class FakeApi
/** /**
* Create request for operation 'fakeOuterStringSerialize' * Create request for operation 'fakeOuterStringSerialize'
* *
* @param string $body Input string as post body (optional) * @param string|null $body Input string as post body (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -4284,16 +4284,16 @@ class FakeApi
* @param float $double None (required) * @param float $double None (required)
* @param string $pattern_without_delimiter None (required) * @param string $pattern_without_delimiter None (required)
* @param string $byte None (required) * @param string $byte None (required)
* @param int $integer None (optional) * @param int|null $integer None (optional)
* @param int $int32 None (optional) * @param int|null $int32 None (optional)
* @param int $int64 None (optional) * @param int|null $int64 None (optional)
* @param float $float None (optional) * @param float|null $float None (optional)
* @param string $string None (optional) * @param string|null $string None (optional)
* @param \SplFileObject $binary None (optional) * @param \SplFileObject|null $binary None (optional)
* @param \DateTime $date None (optional) * @param \DateTime|null $date None (optional)
* @param \DateTime $date_time None (optional) * @param \DateTime|null $date_time None (optional)
* @param string $password None (optional) * @param string|null $password None (optional)
* @param string $callback None (optional) * @param string|null $callback None (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEndpointParameters'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEndpointParameters'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -4314,16 +4314,16 @@ class FakeApi
* @param float $double None (required) * @param float $double None (required)
* @param string $pattern_without_delimiter None (required) * @param string $pattern_without_delimiter None (required)
* @param string $byte None (required) * @param string $byte None (required)
* @param int $integer None (optional) * @param int|null $integer None (optional)
* @param int $int32 None (optional) * @param int|null $int32 None (optional)
* @param int $int64 None (optional) * @param int|null $int64 None (optional)
* @param float $float None (optional) * @param float|null $float None (optional)
* @param string $string None (optional) * @param string|null $string None (optional)
* @param \SplFileObject $binary None (optional) * @param \SplFileObject|null $binary None (optional)
* @param \DateTime $date None (optional) * @param \DateTime|null $date None (optional)
* @param \DateTime $date_time None (optional) * @param \DateTime|null $date_time None (optional)
* @param string $password None (optional) * @param string|null $password None (optional)
* @param string $callback None (optional) * @param string|null $callback None (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEndpointParameters'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEndpointParameters'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -4375,16 +4375,16 @@ class FakeApi
* @param float $double None (required) * @param float $double None (required)
* @param string $pattern_without_delimiter None (required) * @param string $pattern_without_delimiter None (required)
* @param string $byte None (required) * @param string $byte None (required)
* @param int $integer None (optional) * @param int|null $integer None (optional)
* @param int $int32 None (optional) * @param int|null $int32 None (optional)
* @param int $int64 None (optional) * @param int|null $int64 None (optional)
* @param float $float None (optional) * @param float|null $float None (optional)
* @param string $string None (optional) * @param string|null $string None (optional)
* @param \SplFileObject $binary None (optional) * @param \SplFileObject|null $binary None (optional)
* @param \DateTime $date None (optional) * @param \DateTime|null $date None (optional)
* @param \DateTime $date_time None (optional) * @param \DateTime|null $date_time None (optional)
* @param string $password None (optional) * @param string|null $password None (optional)
* @param string $callback None (optional) * @param string|null $callback None (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEndpointParameters'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEndpointParameters'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -4409,16 +4409,16 @@ class FakeApi
* @param float $double None (required) * @param float $double None (required)
* @param string $pattern_without_delimiter None (required) * @param string $pattern_without_delimiter None (required)
* @param string $byte None (required) * @param string $byte None (required)
* @param int $integer None (optional) * @param int|null $integer None (optional)
* @param int $int32 None (optional) * @param int|null $int32 None (optional)
* @param int $int64 None (optional) * @param int|null $int64 None (optional)
* @param float $float None (optional) * @param float|null $float None (optional)
* @param string $string None (optional) * @param string|null $string None (optional)
* @param \SplFileObject $binary None (optional) * @param \SplFileObject|null $binary None (optional)
* @param \DateTime $date None (optional) * @param \DateTime|null $date None (optional)
* @param \DateTime $date_time None (optional) * @param \DateTime|null $date_time None (optional)
* @param string $password None (optional) * @param string|null $password None (optional)
* @param string $callback None (optional) * @param string|null $callback None (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEndpointParameters'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEndpointParameters'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -4459,16 +4459,16 @@ class FakeApi
* @param float $double None (required) * @param float $double None (required)
* @param string $pattern_without_delimiter None (required) * @param string $pattern_without_delimiter None (required)
* @param string $byte None (required) * @param string $byte None (required)
* @param int $integer None (optional) * @param int|null $integer None (optional)
* @param int $int32 None (optional) * @param int|null $int32 None (optional)
* @param int $int64 None (optional) * @param int|null $int64 None (optional)
* @param float $float None (optional) * @param float|null $float None (optional)
* @param string $string None (optional) * @param string|null $string None (optional)
* @param \SplFileObject $binary None (optional) * @param \SplFileObject|null $binary None (optional)
* @param \DateTime $date None (optional) * @param \DateTime|null $date None (optional)
* @param \DateTime $date_time None (optional) * @param \DateTime|null $date_time None (optional)
* @param string $password None (optional) * @param string|null $password None (optional)
* @param string $callback None (optional) * @param string|null $callback None (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEndpointParameters'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEndpointParameters'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -4692,15 +4692,15 @@ class FakeApi
* *
* To test enum parameters * To test enum parameters
* *
* @param string[] $enum_header_string_array Header parameter enum test (string array) (optional) * @param string[]|null $enum_header_string_array Header parameter enum test (string array) (optional)
* @param string $enum_header_string Header parameter enum test (string) (optional, default to '-efg') * @param string|null $enum_header_string Header parameter enum test (string) (optional, default to '-efg')
* @param string[] $enum_query_string_array Query parameter enum test (string array) (optional) * @param string[]|null $enum_query_string_array Query parameter enum test (string array) (optional)
* @param string $enum_query_string Query parameter enum test (string) (optional, default to '-efg') * @param string|null $enum_query_string Query parameter enum test (string) (optional, default to '-efg')
* @param int $enum_query_integer Query parameter enum test (double) (optional) * @param int|null $enum_query_integer Query parameter enum test (double) (optional)
* @param float $enum_query_double Query parameter enum test (double) (optional) * @param float|null $enum_query_double Query parameter enum test (double) (optional)
* @param \OpenAPI\Client\Model\EnumClass[] $enum_query_model_array enum_query_model_array (optional) * @param \OpenAPI\Client\Model\EnumClass[]|null $enum_query_model_array enum_query_model_array (optional)
* @param string[] $enum_form_string_array Form parameter enum test (string array) (optional, default to '$') * @param string[]|null $enum_form_string_array Form parameter enum test (string array) (optional, default to '$')
* @param string $enum_form_string Form parameter enum test (string) (optional, default to '-efg') * @param string|null $enum_form_string Form parameter enum test (string) (optional, default to '-efg')
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumParameters'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumParameters'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -4717,15 +4717,15 @@ class FakeApi
* *
* To test enum parameters * To test enum parameters
* *
* @param string[] $enum_header_string_array Header parameter enum test (string array) (optional) * @param string[]|null $enum_header_string_array Header parameter enum test (string array) (optional)
* @param string $enum_header_string Header parameter enum test (string) (optional, default to '-efg') * @param string|null $enum_header_string Header parameter enum test (string) (optional, default to '-efg')
* @param string[] $enum_query_string_array Query parameter enum test (string array) (optional) * @param string[]|null $enum_query_string_array Query parameter enum test (string array) (optional)
* @param string $enum_query_string Query parameter enum test (string) (optional, default to '-efg') * @param string|null $enum_query_string Query parameter enum test (string) (optional, default to '-efg')
* @param int $enum_query_integer Query parameter enum test (double) (optional) * @param int|null $enum_query_integer Query parameter enum test (double) (optional)
* @param float $enum_query_double Query parameter enum test (double) (optional) * @param float|null $enum_query_double Query parameter enum test (double) (optional)
* @param \OpenAPI\Client\Model\EnumClass[] $enum_query_model_array (optional) * @param \OpenAPI\Client\Model\EnumClass[]|null $enum_query_model_array (optional)
* @param string[] $enum_form_string_array Form parameter enum test (string array) (optional, default to '$') * @param string[]|null $enum_form_string_array Form parameter enum test (string array) (optional, default to '$')
* @param string $enum_form_string Form parameter enum test (string) (optional, default to '-efg') * @param string|null $enum_form_string Form parameter enum test (string) (optional, default to '-efg')
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumParameters'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumParameters'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -4773,15 +4773,15 @@ class FakeApi
* *
* To test enum parameters * To test enum parameters
* *
* @param string[] $enum_header_string_array Header parameter enum test (string array) (optional) * @param string[]|null $enum_header_string_array Header parameter enum test (string array) (optional)
* @param string $enum_header_string Header parameter enum test (string) (optional, default to '-efg') * @param string|null $enum_header_string Header parameter enum test (string) (optional, default to '-efg')
* @param string[] $enum_query_string_array Query parameter enum test (string array) (optional) * @param string[]|null $enum_query_string_array Query parameter enum test (string array) (optional)
* @param string $enum_query_string Query parameter enum test (string) (optional, default to '-efg') * @param string|null $enum_query_string Query parameter enum test (string) (optional, default to '-efg')
* @param int $enum_query_integer Query parameter enum test (double) (optional) * @param int|null $enum_query_integer Query parameter enum test (double) (optional)
* @param float $enum_query_double Query parameter enum test (double) (optional) * @param float|null $enum_query_double Query parameter enum test (double) (optional)
* @param \OpenAPI\Client\Model\EnumClass[] $enum_query_model_array (optional) * @param \OpenAPI\Client\Model\EnumClass[]|null $enum_query_model_array (optional)
* @param string[] $enum_form_string_array Form parameter enum test (string array) (optional, default to '$') * @param string[]|null $enum_form_string_array Form parameter enum test (string array) (optional, default to '$')
* @param string $enum_form_string Form parameter enum test (string) (optional, default to '-efg') * @param string|null $enum_form_string Form parameter enum test (string) (optional, default to '-efg')
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumParameters'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumParameters'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -4802,15 +4802,15 @@ class FakeApi
* *
* To test enum parameters * To test enum parameters
* *
* @param string[] $enum_header_string_array Header parameter enum test (string array) (optional) * @param string[]|null $enum_header_string_array Header parameter enum test (string array) (optional)
* @param string $enum_header_string Header parameter enum test (string) (optional, default to '-efg') * @param string|null $enum_header_string Header parameter enum test (string) (optional, default to '-efg')
* @param string[] $enum_query_string_array Query parameter enum test (string array) (optional) * @param string[]|null $enum_query_string_array Query parameter enum test (string array) (optional)
* @param string $enum_query_string Query parameter enum test (string) (optional, default to '-efg') * @param string|null $enum_query_string Query parameter enum test (string) (optional, default to '-efg')
* @param int $enum_query_integer Query parameter enum test (double) (optional) * @param int|null $enum_query_integer Query parameter enum test (double) (optional)
* @param float $enum_query_double Query parameter enum test (double) (optional) * @param float|null $enum_query_double Query parameter enum test (double) (optional)
* @param \OpenAPI\Client\Model\EnumClass[] $enum_query_model_array (optional) * @param \OpenAPI\Client\Model\EnumClass[]|null $enum_query_model_array (optional)
* @param string[] $enum_form_string_array Form parameter enum test (string array) (optional, default to '$') * @param string[]|null $enum_form_string_array Form parameter enum test (string array) (optional, default to '$')
* @param string $enum_form_string Form parameter enum test (string) (optional, default to '-efg') * @param string|null $enum_form_string Form parameter enum test (string) (optional, default to '-efg')
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumParameters'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumParameters'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -4847,15 +4847,15 @@ class FakeApi
/** /**
* Create request for operation 'testEnumParameters' * Create request for operation 'testEnumParameters'
* *
* @param string[] $enum_header_string_array Header parameter enum test (string array) (optional) * @param string[]|null $enum_header_string_array Header parameter enum test (string array) (optional)
* @param string $enum_header_string Header parameter enum test (string) (optional, default to '-efg') * @param string|null $enum_header_string Header parameter enum test (string) (optional, default to '-efg')
* @param string[] $enum_query_string_array Query parameter enum test (string array) (optional) * @param string[]|null $enum_query_string_array Query parameter enum test (string array) (optional)
* @param string $enum_query_string Query parameter enum test (string) (optional, default to '-efg') * @param string|null $enum_query_string Query parameter enum test (string) (optional, default to '-efg')
* @param int $enum_query_integer Query parameter enum test (double) (optional) * @param int|null $enum_query_integer Query parameter enum test (double) (optional)
* @param float $enum_query_double Query parameter enum test (double) (optional) * @param float|null $enum_query_double Query parameter enum test (double) (optional)
* @param \OpenAPI\Client\Model\EnumClass[] $enum_query_model_array (optional) * @param \OpenAPI\Client\Model\EnumClass[]|null $enum_query_model_array (optional)
* @param string[] $enum_form_string_array Form parameter enum test (string array) (optional, default to '$') * @param string[]|null $enum_form_string_array Form parameter enum test (string array) (optional, default to '$')
* @param string $enum_form_string Form parameter enum test (string) (optional, default to '-efg') * @param string|null $enum_form_string Form parameter enum test (string) (optional, default to '-efg')
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumParameters'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumParameters'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -5012,9 +5012,9 @@ class FakeApi
* @param int $required_string_group Required String in group parameters (required) * @param int $required_string_group Required String in group parameters (required)
* @param bool $required_boolean_group Required Boolean in group parameters (required) * @param bool $required_boolean_group Required Boolean in group parameters (required)
* @param int $required_int64_group Required Integer in group parameters (required) * @param int $required_int64_group Required Integer in group parameters (required)
* @param int $string_group String in group parameters (optional) * @param int|null $string_group String in group parameters (optional)
* @param bool $boolean_group Boolean in group parameters (optional) * @param bool|null $boolean_group Boolean in group parameters (optional)
* @param int $int64_group Integer in group parameters (optional) * @param int|null $int64_group Integer in group parameters (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testGroupParameters'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testGroupParameters'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -5036,9 +5036,9 @@ class FakeApi
* @param int $required_string_group Required String in group parameters (required) * @param int $required_string_group Required String in group parameters (required)
* @param bool $required_boolean_group Required Boolean in group parameters (required) * @param bool $required_boolean_group Required Boolean in group parameters (required)
* @param int $required_int64_group Required Integer in group parameters (required) * @param int $required_int64_group Required Integer in group parameters (required)
* @param int $string_group String in group parameters (optional) * @param int|null $string_group String in group parameters (optional)
* @param bool $boolean_group Boolean in group parameters (optional) * @param bool|null $boolean_group Boolean in group parameters (optional)
* @param int $int64_group Integer in group parameters (optional) * @param int|null $int64_group Integer in group parameters (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testGroupParameters'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testGroupParameters'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -5091,9 +5091,9 @@ class FakeApi
* @param int $required_string_group Required String in group parameters (required) * @param int $required_string_group Required String in group parameters (required)
* @param bool $required_boolean_group Required Boolean in group parameters (required) * @param bool $required_boolean_group Required Boolean in group parameters (required)
* @param int $required_int64_group Required Integer in group parameters (required) * @param int $required_int64_group Required Integer in group parameters (required)
* @param int $string_group String in group parameters (optional) * @param int|null $string_group String in group parameters (optional)
* @param bool $boolean_group Boolean in group parameters (optional) * @param bool|null $boolean_group Boolean in group parameters (optional)
* @param int $int64_group Integer in group parameters (optional) * @param int|null $int64_group Integer in group parameters (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testGroupParameters'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testGroupParameters'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -5119,9 +5119,9 @@ class FakeApi
* @param int $required_string_group Required String in group parameters (required) * @param int $required_string_group Required String in group parameters (required)
* @param bool $required_boolean_group Required Boolean in group parameters (required) * @param bool $required_boolean_group Required Boolean in group parameters (required)
* @param int $required_int64_group Required Integer in group parameters (required) * @param int $required_int64_group Required Integer in group parameters (required)
* @param int $string_group String in group parameters (optional) * @param int|null $string_group String in group parameters (optional)
* @param bool $boolean_group Boolean in group parameters (optional) * @param bool|null $boolean_group Boolean in group parameters (optional)
* @param int $int64_group Integer in group parameters (optional) * @param int|null $int64_group Integer in group parameters (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testGroupParameters'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testGroupParameters'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -5163,9 +5163,9 @@ class FakeApi
* @param int $required_string_group Required String in group parameters (required) * @param int $required_string_group Required String in group parameters (required)
* @param bool $required_boolean_group Required Boolean in group parameters (required) * @param bool $required_boolean_group Required Boolean in group parameters (required)
* @param int $required_int64_group Required Integer in group parameters (required) * @param int $required_int64_group Required Integer in group parameters (required)
* @param int $string_group String in group parameters (optional) * @param int|null $string_group String in group parameters (optional)
* @param bool $boolean_group Boolean in group parameters (optional) * @param bool|null $boolean_group Boolean in group parameters (optional)
* @param int $int64_group Integer in group parameters (optional) * @param int|null $int64_group Integer in group parameters (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testGroupParameters'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testGroupParameters'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -5989,7 +5989,7 @@ class FakeApi
* @param string[] $url url (required) * @param string[] $url url (required)
* @param string[] $context context (required) * @param string[] $context context (required)
* @param string $allow_empty allow_empty (required) * @param string $allow_empty allow_empty (required)
* @param array<string,string> $language language (optional) * @param array<string,string>|null $language language (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryParameterCollectionFormat'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryParameterCollectionFormat'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -6010,7 +6010,7 @@ class FakeApi
* @param string[] $url (required) * @param string[] $url (required)
* @param string[] $context (required) * @param string[] $context (required)
* @param string $allow_empty (required) * @param string $allow_empty (required)
* @param array<string,string> $language (optional) * @param array<string,string>|null $language (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryParameterCollectionFormat'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryParameterCollectionFormat'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -6062,7 +6062,7 @@ class FakeApi
* @param string[] $url (required) * @param string[] $url (required)
* @param string[] $context (required) * @param string[] $context (required)
* @param string $allow_empty (required) * @param string $allow_empty (required)
* @param array<string,string> $language (optional) * @param array<string,string>|null $language (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryParameterCollectionFormat'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryParameterCollectionFormat'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -6087,7 +6087,7 @@ class FakeApi
* @param string[] $url (required) * @param string[] $url (required)
* @param string[] $context (required) * @param string[] $context (required)
* @param string $allow_empty (required) * @param string $allow_empty (required)
* @param array<string,string> $language (optional) * @param array<string,string>|null $language (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryParameterCollectionFormat'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryParameterCollectionFormat'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -6130,7 +6130,7 @@ class FakeApi
* @param string[] $url (required) * @param string[] $url (required)
* @param string[] $context (required) * @param string[] $context (required)
* @param string $allow_empty (required) * @param string $allow_empty (required)
* @param array<string,string> $language (optional) * @param array<string,string>|null $language (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryParameterCollectionFormat'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryParameterCollectionFormat'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException

View File

@ -83,10 +83,10 @@ class FakeClassnameTags123Api
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/ */
public function __construct( public function __construct(
ClientInterface $client = null, ?ClientInterface $client = null,
Configuration $config = null, ?Configuration $config = null,
HeaderSelector $selector = null, ?HeaderSelector $selector = null,
$hostIndex = 0 int $hostIndex = 0
) { ) {
$this->client = $client ?: new Client(); $this->client = $client ?: new Client();
$this->config = $config ?: Configuration::getDefaultConfiguration(); $this->config = $config ?: Configuration::getDefaultConfiguration();

View File

@ -109,10 +109,10 @@ class PetApi
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/ */
public function __construct( public function __construct(
ClientInterface $client = null, ?ClientInterface $client = null,
Configuration $config = null, ?Configuration $config = null,
HeaderSelector $selector = null, ?HeaderSelector $selector = null,
$hostIndex = 0 int $hostIndex = 0
) { ) {
$this->client = $client ?: new Client(); $this->client = $client ?: new Client();
$this->config = $config ?: Configuration::getDefaultConfiguration(); $this->config = $config ?: Configuration::getDefaultConfiguration();
@ -516,7 +516,7 @@ class PetApi
* Deletes a pet * Deletes a pet
* *
* @param int $pet_id Pet id to delete (required) * @param int $pet_id Pet id to delete (required)
* @param string $api_key api_key (optional) * @param string|null $api_key api_key (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['deletePet'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deletePet'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -534,7 +534,7 @@ class PetApi
* Deletes a pet * Deletes a pet
* *
* @param int $pet_id Pet id to delete (required) * @param int $pet_id Pet id to delete (required)
* @param string $api_key (optional) * @param string|null $api_key (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['deletePet'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deletePet'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -583,7 +583,7 @@ class PetApi
* Deletes a pet * Deletes a pet
* *
* @param int $pet_id Pet id to delete (required) * @param int $pet_id Pet id to delete (required)
* @param string $api_key (optional) * @param string|null $api_key (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['deletePet'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deletePet'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -605,7 +605,7 @@ class PetApi
* Deletes a pet * Deletes a pet
* *
* @param int $pet_id Pet id to delete (required) * @param int $pet_id Pet id to delete (required)
* @param string $api_key (optional) * @param string|null $api_key (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['deletePet'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deletePet'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -643,7 +643,7 @@ class PetApi
* Create request for operation 'deletePet' * Create request for operation 'deletePet'
* *
* @param int $pet_id Pet id to delete (required) * @param int $pet_id Pet id to delete (required)
* @param string $api_key (optional) * @param string|null $api_key (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['deletePet'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deletePet'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -2053,8 +2053,8 @@ class PetApi
* Updates a pet in the store with form data * Updates a pet in the store with form data
* *
* @param int $pet_id ID of pet that needs to be updated (required) * @param int $pet_id ID of pet that needs to be updated (required)
* @param string $name Updated name of the pet (optional) * @param string|null $name Updated name of the pet (optional)
* @param string $status Updated status of the pet (optional) * @param string|null $status Updated status of the pet (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePetWithForm'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePetWithForm'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -2072,8 +2072,8 @@ class PetApi
* Updates a pet in the store with form data * Updates a pet in the store with form data
* *
* @param int $pet_id ID of pet that needs to be updated (required) * @param int $pet_id ID of pet that needs to be updated (required)
* @param string $name Updated name of the pet (optional) * @param string|null $name Updated name of the pet (optional)
* @param string $status Updated status of the pet (optional) * @param string|null $status Updated status of the pet (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePetWithForm'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePetWithForm'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -2122,8 +2122,8 @@ class PetApi
* Updates a pet in the store with form data * Updates a pet in the store with form data
* *
* @param int $pet_id ID of pet that needs to be updated (required) * @param int $pet_id ID of pet that needs to be updated (required)
* @param string $name Updated name of the pet (optional) * @param string|null $name Updated name of the pet (optional)
* @param string $status Updated status of the pet (optional) * @param string|null $status Updated status of the pet (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePetWithForm'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePetWithForm'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -2145,8 +2145,8 @@ class PetApi
* Updates a pet in the store with form data * Updates a pet in the store with form data
* *
* @param int $pet_id ID of pet that needs to be updated (required) * @param int $pet_id ID of pet that needs to be updated (required)
* @param string $name Updated name of the pet (optional) * @param string|null $name Updated name of the pet (optional)
* @param string $status Updated status of the pet (optional) * @param string|null $status Updated status of the pet (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePetWithForm'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePetWithForm'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -2184,8 +2184,8 @@ class PetApi
* Create request for operation 'updatePetWithForm' * Create request for operation 'updatePetWithForm'
* *
* @param int $pet_id ID of pet that needs to be updated (required) * @param int $pet_id ID of pet that needs to be updated (required)
* @param string $name Updated name of the pet (optional) * @param string|null $name Updated name of the pet (optional)
* @param string $status Updated status of the pet (optional) * @param string|null $status Updated status of the pet (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePetWithForm'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePetWithForm'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -2294,8 +2294,8 @@ class PetApi
* uploads an image * uploads an image
* *
* @param int $pet_id ID of pet to update (required) * @param int $pet_id ID of pet to update (required)
* @param string $additional_metadata Additional data to pass to server (optional) * @param string|null $additional_metadata Additional data to pass to server (optional)
* @param \SplFileObject $file file to upload (optional) * @param \SplFileObject|null $file file to upload (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFile'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFile'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -2314,8 +2314,8 @@ class PetApi
* uploads an image * uploads an image
* *
* @param int $pet_id ID of pet to update (required) * @param int $pet_id ID of pet to update (required)
* @param string $additional_metadata Additional data to pass to server (optional) * @param string|null $additional_metadata Additional data to pass to server (optional)
* @param \SplFileObject $file file to upload (optional) * @param \SplFileObject|null $file file to upload (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFile'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFile'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -2441,8 +2441,8 @@ class PetApi
* uploads an image * uploads an image
* *
* @param int $pet_id ID of pet to update (required) * @param int $pet_id ID of pet to update (required)
* @param string $additional_metadata Additional data to pass to server (optional) * @param string|null $additional_metadata Additional data to pass to server (optional)
* @param \SplFileObject $file file to upload (optional) * @param \SplFileObject|null $file file to upload (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFile'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFile'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -2464,8 +2464,8 @@ class PetApi
* uploads an image * uploads an image
* *
* @param int $pet_id ID of pet to update (required) * @param int $pet_id ID of pet to update (required)
* @param string $additional_metadata Additional data to pass to server (optional) * @param string|null $additional_metadata Additional data to pass to server (optional)
* @param \SplFileObject $file file to upload (optional) * @param \SplFileObject|null $file file to upload (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFile'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFile'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -2516,8 +2516,8 @@ class PetApi
* Create request for operation 'uploadFile' * Create request for operation 'uploadFile'
* *
* @param int $pet_id ID of pet to update (required) * @param int $pet_id ID of pet to update (required)
* @param string $additional_metadata Additional data to pass to server (optional) * @param string|null $additional_metadata Additional data to pass to server (optional)
* @param \SplFileObject $file file to upload (optional) * @param \SplFileObject|null $file file to upload (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFile'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFile'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -2635,7 +2635,7 @@ class PetApi
* *
* @param int $pet_id ID of pet to update (required) * @param int $pet_id ID of pet to update (required)
* @param \SplFileObject $required_file file to upload (required) * @param \SplFileObject $required_file file to upload (required)
* @param string $additional_metadata Additional data to pass to server (optional) * @param string|null $additional_metadata Additional data to pass to server (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFileWithRequiredFile'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFileWithRequiredFile'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -2655,7 +2655,7 @@ class PetApi
* *
* @param int $pet_id ID of pet to update (required) * @param int $pet_id ID of pet to update (required)
* @param \SplFileObject $required_file file to upload (required) * @param \SplFileObject $required_file file to upload (required)
* @param string $additional_metadata Additional data to pass to server (optional) * @param string|null $additional_metadata Additional data to pass to server (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFileWithRequiredFile'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFileWithRequiredFile'] to see the possible values for this operation
* *
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
@ -2782,7 +2782,7 @@ class PetApi
* *
* @param int $pet_id ID of pet to update (required) * @param int $pet_id ID of pet to update (required)
* @param \SplFileObject $required_file file to upload (required) * @param \SplFileObject $required_file file to upload (required)
* @param string $additional_metadata Additional data to pass to server (optional) * @param string|null $additional_metadata Additional data to pass to server (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFileWithRequiredFile'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFileWithRequiredFile'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -2805,7 +2805,7 @@ class PetApi
* *
* @param int $pet_id ID of pet to update (required) * @param int $pet_id ID of pet to update (required)
* @param \SplFileObject $required_file file to upload (required) * @param \SplFileObject $required_file file to upload (required)
* @param string $additional_metadata Additional data to pass to server (optional) * @param string|null $additional_metadata Additional data to pass to server (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFileWithRequiredFile'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFileWithRequiredFile'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
@ -2857,7 +2857,7 @@ class PetApi
* *
* @param int $pet_id ID of pet to update (required) * @param int $pet_id ID of pet to update (required)
* @param \SplFileObject $required_file file to upload (required) * @param \SplFileObject $required_file file to upload (required)
* @param string $additional_metadata Additional data to pass to server (optional) * @param string|null $additional_metadata Additional data to pass to server (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFileWithRequiredFile'] to see the possible values for this operation * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFileWithRequiredFile'] to see the possible values for this operation
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException

View File

@ -92,10 +92,10 @@ class StoreApi
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/ */
public function __construct( public function __construct(
ClientInterface $client = null, ?ClientInterface $client = null,
Configuration $config = null, ?Configuration $config = null,
HeaderSelector $selector = null, ?HeaderSelector $selector = null,
$hostIndex = 0 int $hostIndex = 0
) { ) {
$this->client = $client ?: new Client(); $this->client = $client ?: new Client();
$this->config = $config ?: Configuration::getDefaultConfiguration(); $this->config = $config ?: Configuration::getDefaultConfiguration();

View File

@ -104,10 +104,10 @@ class UserApi
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/ */
public function __construct( public function __construct(
ClientInterface $client = null, ?ClientInterface $client = null,
Configuration $config = null, ?Configuration $config = null,
HeaderSelector $selector = null, ?HeaderSelector $selector = null,
$hostIndex = 0 int $hostIndex = 0
) { ) {
$this->client = $client ?: new Client(); $this->client = $client ?: new Client();
$this->config = $config ?: Configuration::getDefaultConfiguration(); $this->config = $config ?: Configuration::getDefaultConfiguration();

View File

@ -523,7 +523,7 @@ class Configuration
* @param array|null $variables hash of variable and the corresponding value (optional) * @param array|null $variables hash of variable and the corresponding value (optional)
* @return string URL based on host settings * @return string URL based on host settings
*/ */
public static function getHostString(array $hostSettings, $hostIndex, array $variables = null) public static function getHostString(array $hostSettings, $hostIndex, ?array $variables = null)
{ {
if (null === $variables) { if (null === $variables) {
$variables = []; $variables = [];

View File

@ -245,10 +245,10 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess, \JsonSer
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('map_property', $data ?? [], null); $this->setIfExists('map_property', $data ?? [], null);
$this->setIfExists('map_of_map_property', $data ?? [], null); $this->setIfExists('map_of_map_property', $data ?? [], null);

View File

@ -245,10 +245,10 @@ class AllOfWithSingleRef implements ModelInterface, ArrayAccess, \JsonSerializab
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('username', $data ?? [], null); $this->setIfExists('username', $data ?? [], null);
$this->setIfExists('single_ref_type', $data ?? [], null); $this->setIfExists('single_ref_type', $data ?? [], null);

View File

@ -245,10 +245,10 @@ class Animal implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('class_name', $data ?? [], null); $this->setIfExists('class_name', $data ?? [], null);
$this->setIfExists('color', $data ?? [], 'red'); $this->setIfExists('color', $data ?? [], 'red');

View File

@ -251,10 +251,10 @@ class ApiResponse implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('code', $data ?? [], null); $this->setIfExists('code', $data ?? [], null);
$this->setIfExists('type', $data ?? [], null); $this->setIfExists('type', $data ?? [], null);

View File

@ -239,10 +239,10 @@ class ArrayOfArrayOfNumberOnly implements ModelInterface, ArrayAccess, \JsonSeri
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('array_array_number', $data ?? [], null); $this->setIfExists('array_array_number', $data ?? [], null);
} }

View File

@ -239,10 +239,10 @@ class ArrayOfNumberOnly implements ModelInterface, ArrayAccess, \JsonSerializabl
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('array_number', $data ?? [], null); $this->setIfExists('array_number', $data ?? [], null);
} }

View File

@ -251,10 +251,10 @@ class ArrayTest implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('array_of_string', $data ?? [], null); $this->setIfExists('array_of_string', $data ?? [], null);
$this->setIfExists('array_array_of_integer', $data ?? [], null); $this->setIfExists('array_array_of_integer', $data ?? [], null);

View File

@ -269,10 +269,10 @@ class Capitalization implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('small_camel', $data ?? [], null); $this->setIfExists('small_camel', $data ?? [], null);
$this->setIfExists('capital_camel', $data ?? [], null); $this->setIfExists('capital_camel', $data ?? [], null);

View File

@ -231,10 +231,10 @@ class Cat extends Animal
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
parent::__construct($data); parent::__construct($data);

View File

@ -245,10 +245,10 @@ class Category implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('id', $data ?? [], null); $this->setIfExists('id', $data ?? [], null);
$this->setIfExists('name', $data ?? [], 'default-name'); $this->setIfExists('name', $data ?? [], 'default-name');

View File

@ -240,10 +240,10 @@ class ClassModel implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('_class', $data ?? [], null); $this->setIfExists('_class', $data ?? [], null);
} }

View File

@ -239,10 +239,10 @@ class Client implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('client', $data ?? [], null); $this->setIfExists('client', $data ?? [], null);
} }

View File

@ -239,10 +239,10 @@ class DeprecatedObject implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('name', $data ?? [], null); $this->setIfExists('name', $data ?? [], null);
} }

View File

@ -231,10 +231,10 @@ class Dog extends Animal
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
parent::__construct($data); parent::__construct($data);

View File

@ -275,10 +275,10 @@ class EnumArrays implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('just_symbol', $data ?? [], null); $this->setIfExists('just_symbol', $data ?? [], null);
$this->setIfExists('array_enum', $data ?? [], null); $this->setIfExists('array_enum', $data ?? [], null);

View File

@ -345,10 +345,10 @@ class EnumTest implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('enum_string', $data ?? [], null); $this->setIfExists('enum_string', $data ?? [], null);
$this->setIfExists('enum_string_required', $data ?? [], null); $this->setIfExists('enum_string_required', $data ?? [], null);

View File

@ -245,10 +245,10 @@ class FakeBigDecimalMap200Response implements ModelInterface, ArrayAccess, \Json
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('some_id', $data ?? [], null); $this->setIfExists('some_id', $data ?? [], null);
$this->setIfExists('some_map', $data ?? [], null); $this->setIfExists('some_map', $data ?? [], null);

View File

@ -240,10 +240,10 @@ class File implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('source_uri', $data ?? [], null); $this->setIfExists('source_uri', $data ?? [], null);
} }

View File

@ -245,10 +245,10 @@ class FileSchemaTestClass implements ModelInterface, ArrayAccess, \JsonSerializa
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('file', $data ?? [], null); $this->setIfExists('file', $data ?? [], null);
$this->setIfExists('files', $data ?? [], null); $this->setIfExists('files', $data ?? [], null);

View File

@ -239,10 +239,10 @@ class Foo implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('bar', $data ?? [], 'bar'); $this->setIfExists('bar', $data ?? [], 'bar');
} }

View File

@ -239,10 +239,10 @@ class FooGetDefaultResponse implements ModelInterface, ArrayAccess, \JsonSeriali
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('string', $data ?? [], null); $this->setIfExists('string', $data ?? [], null);
} }

View File

@ -329,10 +329,10 @@ class FormatTest implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('integer', $data ?? [], null); $this->setIfExists('integer', $data ?? [], null);
$this->setIfExists('int32', $data ?? [], null); $this->setIfExists('int32', $data ?? [], null);

View File

@ -245,10 +245,10 @@ class HasOnlyReadOnly implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('bar', $data ?? [], null); $this->setIfExists('bar', $data ?? [], null);
$this->setIfExists('foo', $data ?? [], null); $this->setIfExists('foo', $data ?? [], null);

View File

@ -240,10 +240,10 @@ class HealthCheckResult implements ModelInterface, ArrayAccess, \JsonSerializabl
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('nullable_message', $data ?? [], null); $this->setIfExists('nullable_message', $data ?? [], null);
} }

View File

@ -272,10 +272,10 @@ class MapTest implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('map_map_of_string', $data ?? [], null); $this->setIfExists('map_map_of_string', $data ?? [], null);
$this->setIfExists('map_of_enum_string', $data ?? [], null); $this->setIfExists('map_of_enum_string', $data ?? [], null);

View File

@ -251,10 +251,10 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('uuid', $data ?? [], null); $this->setIfExists('uuid', $data ?? [], null);
$this->setIfExists('date_time', $data ?? [], null); $this->setIfExists('date_time', $data ?? [], null);

View File

@ -246,10 +246,10 @@ class Model200Response implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('name', $data ?? [], null); $this->setIfExists('name', $data ?? [], null);
$this->setIfExists('class', $data ?? [], null); $this->setIfExists('class', $data ?? [], null);

View File

@ -239,10 +239,10 @@ class ModelList implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('_123_list', $data ?? [], null); $this->setIfExists('_123_list', $data ?? [], null);
} }

View File

@ -240,10 +240,10 @@ class ModelReturn implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('return', $data ?? [], null); $this->setIfExists('return', $data ?? [], null);
} }

View File

@ -258,10 +258,10 @@ class Name implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('name', $data ?? [], null); $this->setIfExists('name', $data ?? [], null);
$this->setIfExists('snake_case', $data ?? [], null); $this->setIfExists('snake_case', $data ?? [], null);

View File

@ -305,10 +305,10 @@ class NullableClass implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('integer_prop', $data ?? [], null); $this->setIfExists('integer_prop', $data ?? [], null);
$this->setIfExists('number_prop', $data ?? [], null); $this->setIfExists('number_prop', $data ?? [], null);

View File

@ -239,10 +239,10 @@ class NumberOnly implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('just_number', $data ?? [], null); $this->setIfExists('just_number', $data ?? [], null);
} }

View File

@ -257,10 +257,10 @@ class ObjectWithDeprecatedFields implements ModelInterface, ArrayAccess, \JsonSe
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('uuid', $data ?? [], null); $this->setIfExists('uuid', $data ?? [], null);
$this->setIfExists('id', $data ?? [], null); $this->setIfExists('id', $data ?? [], null);

View File

@ -286,10 +286,10 @@ class Order implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('id', $data ?? [], null); $this->setIfExists('id', $data ?? [], null);
$this->setIfExists('pet_id', $data ?? [], null); $this->setIfExists('pet_id', $data ?? [], null);

View File

@ -251,10 +251,10 @@ class OuterComposite implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('my_number', $data ?? [], null); $this->setIfExists('my_number', $data ?? [], null);
$this->setIfExists('my_string', $data ?? [], null); $this->setIfExists('my_string', $data ?? [], null);

View File

@ -239,10 +239,10 @@ class OuterObjectWithEnumProperty implements ModelInterface, ArrayAccess, \JsonS
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('value', $data ?? [], null); $this->setIfExists('value', $data ?? [], null);
} }

View File

@ -286,10 +286,10 @@ class Pet implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('id', $data ?? [], null); $this->setIfExists('id', $data ?? [], null);
$this->setIfExists('category', $data ?? [], null); $this->setIfExists('category', $data ?? [], null);

View File

@ -257,10 +257,10 @@ class PropertyNameMapping implements ModelInterface, ArrayAccess, \JsonSerializa
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('http_debug_operation', $data ?? [], null); $this->setIfExists('http_debug_operation', $data ?? [], null);
$this->setIfExists('underscore_type', $data ?? [], null); $this->setIfExists('underscore_type', $data ?? [], null);

View File

@ -245,10 +245,10 @@ class ReadOnlyFirst implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('bar', $data ?? [], null); $this->setIfExists('bar', $data ?? [], null);
$this->setIfExists('baz', $data ?? [], null); $this->setIfExists('baz', $data ?? [], null);

View File

@ -239,10 +239,10 @@ class SpecialModelName implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('special_property_name', $data ?? [], null); $this->setIfExists('special_property_name', $data ?? [], null);
} }

View File

@ -245,10 +245,10 @@ class Tag implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('id', $data ?? [], null); $this->setIfExists('id', $data ?? [], null);
$this->setIfExists('name', $data ?? [], null); $this->setIfExists('name', $data ?? [], null);

View File

@ -239,10 +239,10 @@ class TestInlineFreeformAdditionalPropertiesRequest implements ModelInterface, A
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('some_property', $data ?? [], null); $this->setIfExists('some_property', $data ?? [], null);
} }

View File

@ -281,10 +281,10 @@ class User implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('id', $data ?? [], null); $this->setIfExists('id', $data ?? [], null);
$this->setIfExists('username', $data ?? [], null); $this->setIfExists('username', $data ?? [], null);

View File

@ -58,8 +58,8 @@ class ObjectSerializer
* Serialize data * Serialize data
* *
* @param mixed $data the data to serialize * @param mixed $data the data to serialize
* @param string $type the OpenAPIToolsType of the data * @param string|null $type the OpenAPIToolsType of the data
* @param string $format the format of the OpenAPITools type of the data * @param string|null $format the format of the OpenAPITools type of the data
* *
* @return scalar|object|array|null serialized form of $data * @return scalar|object|array|null serialized form of $data
*/ */
@ -404,7 +404,7 @@ class ObjectSerializer
* *
* @param mixed $data object or primitive to be deserialized * @param mixed $data object or primitive to be deserialized
* @param string $class class name is passed as a string * @param string $class class name is passed as a string
* @param string[] $httpHeaders HTTP headers * @param string[]|null $httpHeaders HTTP headers
* *
* @return object|array|null a single or an array of $class instances * @return object|array|null a single or an array of $class instances
*/ */

View File

@ -104,13 +104,13 @@ class AnotherFakeApi
protected $streamFactory; protected $streamFactory;
public function __construct( public function __construct(
ClientInterface $httpClient = null, ?ClientInterface $httpClient = null,
Configuration $config = null, ?Configuration $config = null,
HttpAsyncClient $httpAsyncClient = null, ?HttpAsyncClient $httpAsyncClient = null,
UriFactoryInterface $uriFactory = null, ?UriFactoryInterface $uriFactory = null,
RequestFactoryInterface $requestFactory = null, ?RequestFactoryInterface $requestFactory = null,
StreamFactoryInterface $streamFactory = null, ?StreamFactoryInterface $streamFactory = null,
HeaderSelector $selector = null, ?HeaderSelector $selector = null,
?array $plugins = null, ?array $plugins = null,
$hostIndex = 0 $hostIndex = 0
) { ) {

View File

@ -104,13 +104,13 @@ class DefaultApi
protected $streamFactory; protected $streamFactory;
public function __construct( public function __construct(
ClientInterface $httpClient = null, ?ClientInterface $httpClient = null,
Configuration $config = null, ?Configuration $config = null,
HttpAsyncClient $httpAsyncClient = null, ?HttpAsyncClient $httpAsyncClient = null,
UriFactoryInterface $uriFactory = null, ?UriFactoryInterface $uriFactory = null,
RequestFactoryInterface $requestFactory = null, ?RequestFactoryInterface $requestFactory = null,
StreamFactoryInterface $streamFactory = null, ?StreamFactoryInterface $streamFactory = null,
HeaderSelector $selector = null, ?HeaderSelector $selector = null,
?array $plugins = null, ?array $plugins = null,
$hostIndex = 0 $hostIndex = 0
) { ) {

View File

@ -104,13 +104,13 @@ class FakeApi
protected $streamFactory; protected $streamFactory;
public function __construct( public function __construct(
ClientInterface $httpClient = null, ?ClientInterface $httpClient = null,
Configuration $config = null, ?Configuration $config = null,
HttpAsyncClient $httpAsyncClient = null, ?HttpAsyncClient $httpAsyncClient = null,
UriFactoryInterface $uriFactory = null, ?UriFactoryInterface $uriFactory = null,
RequestFactoryInterface $requestFactory = null, ?RequestFactoryInterface $requestFactory = null,
StreamFactoryInterface $streamFactory = null, ?StreamFactoryInterface $streamFactory = null,
HeaderSelector $selector = null, ?HeaderSelector $selector = null,
?array $plugins = null, ?array $plugins = null,
$hostIndex = 0 $hostIndex = 0
) { ) {

View File

@ -104,13 +104,13 @@ class FakeClassnameTags123Api
protected $streamFactory; protected $streamFactory;
public function __construct( public function __construct(
ClientInterface $httpClient = null, ?ClientInterface $httpClient = null,
Configuration $config = null, ?Configuration $config = null,
HttpAsyncClient $httpAsyncClient = null, ?HttpAsyncClient $httpAsyncClient = null,
UriFactoryInterface $uriFactory = null, ?UriFactoryInterface $uriFactory = null,
RequestFactoryInterface $requestFactory = null, ?RequestFactoryInterface $requestFactory = null,
StreamFactoryInterface $streamFactory = null, ?StreamFactoryInterface $streamFactory = null,
HeaderSelector $selector = null, ?HeaderSelector $selector = null,
?array $plugins = null, ?array $plugins = null,
$hostIndex = 0 $hostIndex = 0
) { ) {

View File

@ -104,13 +104,13 @@ class PetApi
protected $streamFactory; protected $streamFactory;
public function __construct( public function __construct(
ClientInterface $httpClient = null, ?ClientInterface $httpClient = null,
Configuration $config = null, ?Configuration $config = null,
HttpAsyncClient $httpAsyncClient = null, ?HttpAsyncClient $httpAsyncClient = null,
UriFactoryInterface $uriFactory = null, ?UriFactoryInterface $uriFactory = null,
RequestFactoryInterface $requestFactory = null, ?RequestFactoryInterface $requestFactory = null,
StreamFactoryInterface $streamFactory = null, ?StreamFactoryInterface $streamFactory = null,
HeaderSelector $selector = null, ?HeaderSelector $selector = null,
?array $plugins = null, ?array $plugins = null,
$hostIndex = 0 $hostIndex = 0
) { ) {

View File

@ -104,13 +104,13 @@ class StoreApi
protected $streamFactory; protected $streamFactory;
public function __construct( public function __construct(
ClientInterface $httpClient = null, ?ClientInterface $httpClient = null,
Configuration $config = null, ?Configuration $config = null,
HttpAsyncClient $httpAsyncClient = null, ?HttpAsyncClient $httpAsyncClient = null,
UriFactoryInterface $uriFactory = null, ?UriFactoryInterface $uriFactory = null,
RequestFactoryInterface $requestFactory = null, ?RequestFactoryInterface $requestFactory = null,
StreamFactoryInterface $streamFactory = null, ?StreamFactoryInterface $streamFactory = null,
HeaderSelector $selector = null, ?HeaderSelector $selector = null,
?array $plugins = null, ?array $plugins = null,
$hostIndex = 0 $hostIndex = 0
) { ) {

View File

@ -104,13 +104,13 @@ class UserApi
protected $streamFactory; protected $streamFactory;
public function __construct( public function __construct(
ClientInterface $httpClient = null, ?ClientInterface $httpClient = null,
Configuration $config = null, ?Configuration $config = null,
HttpAsyncClient $httpAsyncClient = null, ?HttpAsyncClient $httpAsyncClient = null,
UriFactoryInterface $uriFactory = null, ?UriFactoryInterface $uriFactory = null,
RequestFactoryInterface $requestFactory = null, ?RequestFactoryInterface $requestFactory = null,
StreamFactoryInterface $streamFactory = null, ?StreamFactoryInterface $streamFactory = null,
HeaderSelector $selector = null, ?HeaderSelector $selector = null,
?array $plugins = null, ?array $plugins = null,
$hostIndex = 0 $hostIndex = 0
) { ) {

View File

@ -67,8 +67,8 @@ class ApiException extends RequestException
public function __construct( public function __construct(
$message, $message,
RequestInterface $request, RequestInterface $request,
ResponseInterface $response = null, ?ResponseInterface $response = null,
Exception $previous = null ?Exception $previous = null
) { ) {
parent::__construct($message, $request, $previous); parent::__construct($message, $request, $previous);
if ($response) { if ($response) {

View File

@ -523,7 +523,7 @@ class Configuration
* @param array|null $variables hash of variable and the corresponding value (optional) * @param array|null $variables hash of variable and the corresponding value (optional)
* @return string URL based on host settings * @return string URL based on host settings
*/ */
public static function getHostString(array $hostSettings, $hostIndex, array $variables = null) public static function getHostString(array $hostSettings, $hostIndex, ?array $variables = null)
{ {
if (null === $variables) { if (null === $variables) {
$variables = []; $variables = [];

View File

@ -245,10 +245,10 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess, \JsonSer
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('map_property', $data ?? [], null); $this->setIfExists('map_property', $data ?? [], null);
$this->setIfExists('map_of_map_property', $data ?? [], null); $this->setIfExists('map_of_map_property', $data ?? [], null);

View File

@ -245,10 +245,10 @@ class AllOfWithSingleRef implements ModelInterface, ArrayAccess, \JsonSerializab
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('username', $data ?? [], null); $this->setIfExists('username', $data ?? [], null);
$this->setIfExists('single_ref_type', $data ?? [], null); $this->setIfExists('single_ref_type', $data ?? [], null);

View File

@ -245,10 +245,10 @@ class Animal implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('class_name', $data ?? [], null); $this->setIfExists('class_name', $data ?? [], null);
$this->setIfExists('color', $data ?? [], 'red'); $this->setIfExists('color', $data ?? [], 'red');

View File

@ -251,10 +251,10 @@ class ApiResponse implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('code', $data ?? [], null); $this->setIfExists('code', $data ?? [], null);
$this->setIfExists('type', $data ?? [], null); $this->setIfExists('type', $data ?? [], null);

View File

@ -239,10 +239,10 @@ class ArrayOfArrayOfNumberOnly implements ModelInterface, ArrayAccess, \JsonSeri
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('array_array_number', $data ?? [], null); $this->setIfExists('array_array_number', $data ?? [], null);
} }

View File

@ -239,10 +239,10 @@ class ArrayOfNumberOnly implements ModelInterface, ArrayAccess, \JsonSerializabl
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('array_number', $data ?? [], null); $this->setIfExists('array_number', $data ?? [], null);
} }

View File

@ -251,10 +251,10 @@ class ArrayTest implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('array_of_string', $data ?? [], null); $this->setIfExists('array_of_string', $data ?? [], null);
$this->setIfExists('array_array_of_integer', $data ?? [], null); $this->setIfExists('array_array_of_integer', $data ?? [], null);

View File

@ -269,10 +269,10 @@ class Capitalization implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('small_camel', $data ?? [], null); $this->setIfExists('small_camel', $data ?? [], null);
$this->setIfExists('capital_camel', $data ?? [], null); $this->setIfExists('capital_camel', $data ?? [], null);

View File

@ -231,10 +231,10 @@ class Cat extends Animal
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
parent::__construct($data); parent::__construct($data);

View File

@ -245,10 +245,10 @@ class Category implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('id', $data ?? [], null); $this->setIfExists('id', $data ?? [], null);
$this->setIfExists('name', $data ?? [], 'default-name'); $this->setIfExists('name', $data ?? [], 'default-name');

View File

@ -240,10 +240,10 @@ class ClassModel implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('_class', $data ?? [], null); $this->setIfExists('_class', $data ?? [], null);
} }

View File

@ -239,10 +239,10 @@ class Client implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('client', $data ?? [], null); $this->setIfExists('client', $data ?? [], null);
} }

View File

@ -239,10 +239,10 @@ class DeprecatedObject implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('name', $data ?? [], null); $this->setIfExists('name', $data ?? [], null);
} }

View File

@ -231,10 +231,10 @@ class Dog extends Animal
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
parent::__construct($data); parent::__construct($data);

View File

@ -275,10 +275,10 @@ class EnumArrays implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('just_symbol', $data ?? [], null); $this->setIfExists('just_symbol', $data ?? [], null);
$this->setIfExists('array_enum', $data ?? [], null); $this->setIfExists('array_enum', $data ?? [], null);

View File

@ -345,10 +345,10 @@ class EnumTest implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('enum_string', $data ?? [], null); $this->setIfExists('enum_string', $data ?? [], null);
$this->setIfExists('enum_string_required', $data ?? [], null); $this->setIfExists('enum_string_required', $data ?? [], null);

View File

@ -245,10 +245,10 @@ class FakeBigDecimalMap200Response implements ModelInterface, ArrayAccess, \Json
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('some_id', $data ?? [], null); $this->setIfExists('some_id', $data ?? [], null);
$this->setIfExists('some_map', $data ?? [], null); $this->setIfExists('some_map', $data ?? [], null);

View File

@ -240,10 +240,10 @@ class File implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('source_uri', $data ?? [], null); $this->setIfExists('source_uri', $data ?? [], null);
} }

View File

@ -245,10 +245,10 @@ class FileSchemaTestClass implements ModelInterface, ArrayAccess, \JsonSerializa
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('file', $data ?? [], null); $this->setIfExists('file', $data ?? [], null);
$this->setIfExists('files', $data ?? [], null); $this->setIfExists('files', $data ?? [], null);

View File

@ -239,10 +239,10 @@ class Foo implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('bar', $data ?? [], 'bar'); $this->setIfExists('bar', $data ?? [], 'bar');
} }

View File

@ -239,10 +239,10 @@ class FooGetDefaultResponse implements ModelInterface, ArrayAccess, \JsonSeriali
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('string', $data ?? [], null); $this->setIfExists('string', $data ?? [], null);
} }

View File

@ -329,10 +329,10 @@ class FormatTest implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('integer', $data ?? [], null); $this->setIfExists('integer', $data ?? [], null);
$this->setIfExists('int32', $data ?? [], null); $this->setIfExists('int32', $data ?? [], null);

View File

@ -245,10 +245,10 @@ class HasOnlyReadOnly implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('bar', $data ?? [], null); $this->setIfExists('bar', $data ?? [], null);
$this->setIfExists('foo', $data ?? [], null); $this->setIfExists('foo', $data ?? [], null);

View File

@ -240,10 +240,10 @@ class HealthCheckResult implements ModelInterface, ArrayAccess, \JsonSerializabl
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('nullable_message', $data ?? [], null); $this->setIfExists('nullable_message', $data ?? [], null);
} }

View File

@ -272,10 +272,10 @@ class MapTest implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('map_map_of_string', $data ?? [], null); $this->setIfExists('map_map_of_string', $data ?? [], null);
$this->setIfExists('map_of_enum_string', $data ?? [], null); $this->setIfExists('map_of_enum_string', $data ?? [], null);

View File

@ -251,10 +251,10 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('uuid', $data ?? [], null); $this->setIfExists('uuid', $data ?? [], null);
$this->setIfExists('date_time', $data ?? [], null); $this->setIfExists('date_time', $data ?? [], null);

View File

@ -246,10 +246,10 @@ class Model200Response implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('name', $data ?? [], null); $this->setIfExists('name', $data ?? [], null);
$this->setIfExists('class', $data ?? [], null); $this->setIfExists('class', $data ?? [], null);

View File

@ -239,10 +239,10 @@ class ModelList implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('_123_list', $data ?? [], null); $this->setIfExists('_123_list', $data ?? [], null);
} }

View File

@ -240,10 +240,10 @@ class ModelReturn implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('return', $data ?? [], null); $this->setIfExists('return', $data ?? [], null);
} }

View File

@ -258,10 +258,10 @@ class Name implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('name', $data ?? [], null); $this->setIfExists('name', $data ?? [], null);
$this->setIfExists('snake_case', $data ?? [], null); $this->setIfExists('snake_case', $data ?? [], null);

View File

@ -305,10 +305,10 @@ class NullableClass implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('integer_prop', $data ?? [], null); $this->setIfExists('integer_prop', $data ?? [], null);
$this->setIfExists('number_prop', $data ?? [], null); $this->setIfExists('number_prop', $data ?? [], null);

View File

@ -239,10 +239,10 @@ class NumberOnly implements ModelInterface, ArrayAccess, \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('just_number', $data ?? [], null); $this->setIfExists('just_number', $data ?? [], null);
} }

View File

@ -257,10 +257,10 @@ class ObjectWithDeprecatedFields implements ModelInterface, ArrayAccess, \JsonSe
/** /**
* Constructor * Constructor
* *
* @param mixed[] $data Associated array of property values * @param mixed[]|null $data Associated array of property values
* initializing the model * initializing the model
*/ */
public function __construct(array $data = null) public function __construct(?array $data = null)
{ {
$this->setIfExists('uuid', $data ?? [], null); $this->setIfExists('uuid', $data ?? [], null);
$this->setIfExists('id', $data ?? [], null); $this->setIfExists('id', $data ?? [], null);

Some files were not shown because too many files have changed in this diff Show More