Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mustache-templates/php-nextgen/.php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
'no_trailing_whitespace' => false,
'no_trailing_whitespace_in_comment' => false,
'braces' => false,
'nullable_type_declaration_for_default_null_value' => true,
'single_blank_line_at_eof' => false,
'blank_line_after_namespace' => false,
'no_leading_import_slash' => false,
Expand Down
2 changes: 1 addition & 1 deletion mustache-templates/php-nextgen/Configuration.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ class Configuration
* @param array|null $variables hash of variable and the corresponding value (optional)
* @return string URL based on host settings
*/
public static function getHostString(array $hostsSettings, $hostIndex, array $variables = null)
public static function getHostString(array $hostsSettings, $hostIndex, ?array $variables = null)
{
if (null === $variables) {
$variables = [];
Expand Down
6 changes: 3 additions & 3 deletions mustache-templates/php-nextgen/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ use {{invokerPackage}}\ObjectSerializer;
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/
public function __construct(
ClientInterface $client = null,
Configuration $config = null,
HeaderSelector $selector = null,
?ClientInterface $client = null,
?Configuration $config = null,
?HeaderSelector $selector = null,
$hostIndex = 0
) {
$this->client = $client ?: new Client();
Expand Down
2 changes: 1 addition & 1 deletion mustache-templates/php-nextgen/model_generic.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}}{{/parentSchema}}{{^par
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
{{#parentSchema}}
parent::__construct($data);
Expand Down