Skip to content

Commit

Permalink
Make compatible with PHP 8.4
Browse files Browse the repository at this point in the history
> MessageBird\Client::__construct(): Implicitly marking parameter $httpClient as nullable is deprecated, the explicit nullable type must be used instead
  • Loading branch information
ruudk authored Oct 31, 2024
1 parent ea8512b commit 3a353d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MessageBird/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class Client
*/
protected $numbersAPIClient;

public function __construct(?string $accessKey = null, Common\HttpClient $httpClient = null, array $config = [])
public function __construct(?string $accessKey = null, ?Common\HttpClient $httpClient = null, array $config = [])
{
if ($httpClient === null) {
$this->conversationsAPIHttpClient = new Common\HttpClient(
Expand Down

0 comments on commit 3a353d8

Please sign in to comment.