Skip to content

Commit 9f849d8

Browse files
authored
Fix deprecation notice on PHP 8.4 (#66)
Co-authored-by: simonhammes <[email protected]>
1 parent ba6cc06 commit 9f849d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ class Client
4242
* debug => true,
4343
* ];
4444
*
45-
* @param HTTPClientInterface $client Optional, pass in custom HTTP client.
45+
* @param ?HTTPClientInterface $client Optional, pass in custom HTTP client.
4646
*
4747
* @return Object Client object
4848
*/
49-
public function __construct( array $options = [], HTTPClientInterface $client = null)
49+
public function __construct( array $options = [], ?HTTPClientInterface $client = null)
5050
{
5151
$this->options = $options;
5252
$this->http_client = $client ?? new HTTPClient($options);

0 commit comments

Comments
 (0)