@@ -226,7 +226,7 @@ public function setHosts(array $hosts): ClientBuilder
226
226
*
227
227
* @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html
228
228
*/
229
- public function setApiKey (string $ apiKey , string $ id = null ): ClientBuilder
229
+ public function setApiKey (string $ apiKey , ? string $ id = null ): ClientBuilder
230
230
{
231
231
if (empty ($ id )) {
232
232
$ this ->apiKey = $ apiKey ;
@@ -272,7 +272,7 @@ public function setRetries(int $retries): ClientBuilder
272
272
* @param string $cert The name of a file containing a PEM formatted certificate
273
273
* @param string $password if the certificate requires a password
274
274
*/
275
- public function setSSLCert (string $ cert , string $ password = null ): ClientBuilder
275
+ public function setSSLCert (string $ cert , ? string $ password = null ): ClientBuilder
276
276
{
277
277
$ this ->sslCert = [$ cert , $ password ];
278
278
return $ this ;
@@ -295,7 +295,7 @@ public function setCABundle(string $cert): ClientBuilder
295
295
* @param string $key The name of a file containing a private SSL key
296
296
* @param string $password if the private key requires a password
297
297
*/
298
- public function setSSLKey (string $ key , string $ password = null ): ClientBuilder
298
+ public function setSSLKey (string $ key , ? string $ password = null ): ClientBuilder
299
299
{
300
300
$ this ->sslKey = [$ key , $ password ];
301
301
return $ this ;
@@ -469,4 +469,4 @@ protected function setOptions(ClientInterface $client, array $config, array $cli
469
469
$ adapter = new $ adapterClass ;
470
470
return $ adapter ->setConfig ($ client , $ config , $ clientOptions );
471
471
}
472
- }
472
+ }
0 commit comments