Skip to content

Commit 8ef74d7

Browse files
authored
Merge pull request #108 from smnandre/fix/deprecations-nullable-argument
Fix PHP8 nullable argument deprecation
2 parents eea3887 + 8732643 commit 8ef74d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sdk/Api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Api
3939
private $parser;
4040
private $logger;
4141

42-
public function __construct(array $options = [], HttpClientInterface $httpClient = null, Parser $parser = null, LoggerInterface $logger = null)
42+
public function __construct(array $options = [], ?HttpClientInterface $httpClient = null, ?Parser $parser = null, ?LoggerInterface $logger = null)
4343
{
4444
$this->httpClient = $httpClient ?: HttpClient::create();
4545
$this->parser = $parser ?: new Parser();

0 commit comments

Comments
 (0)