diff --git a/lib/Api/IssuedDocumentsApi.php b/lib/Api/IssuedDocumentsApi.php index 421495d7..8b0a3d7a 100644 --- a/lib/Api/IssuedDocumentsApi.php +++ b/lib/Api/IssuedDocumentsApi.php @@ -123,9 +123,9 @@ class IssuedDocumentsApi * @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(); diff --git a/lib/Configuration.php b/lib/Configuration.php index b7597359..16fa110b 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -487,7 +487,7 @@ public function getHostSettings() * @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, $hostIndex, array $variables = null) + public static function getHostString(array $hostSettings, $hostIndex, ?array $variables = null) { if (null === $variables) { $variables = [];