mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-21 03:57:07 +00:00
[php-*] Explicitly declare nullable parameters (#20524)
* [php-nextgen] Explicitly declare nullable parameters explicitly * Fix some deprecation warnings in other php generators * [php-nextgen] Fix PHP 8.4 deprecation warnings with nullable/optional array parameters
This commit is contained in:
@@ -482,7 +482,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 $hostSettings, int $hostIndex, array $variables = null): string
|
||||
public static function getHostString(array $hostSettings, int $hostIndex, ?array $variables = null): string
|
||||
{
|
||||
if (null === $variables) {
|
||||
$variables = [];
|
||||
|
||||
Reference in New Issue
Block a user