Skip to content

Commit 47e7652

Browse files
authored
PHP 8.4 compatibility (#222)
* Add PHP 8.3 and PHP 8.4 to matrix * Make compatible with PHP 8.4 > MessageBird\Client::__construct(): Implicitly marking parameter $httpClient as nullable is deprecated, the explicit nullable type must be used instead
1 parent 1509430 commit 47e7652

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: true
1313
matrix:
14-
php: [ '7.4', '8.0', '8.1', '8.2' ]
14+
php: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
1515
stability: [ prefer-stable ]
1616

1717
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}

src/MessageBird/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class Client
147147
*/
148148
protected $numbersAPIClient;
149149

150-
public function __construct(?string $accessKey = null, Common\HttpClient $httpClient = null, array $config = [])
150+
public function __construct(?string $accessKey = null, ?Common\HttpClient $httpClient = null, array $config = [])
151151
{
152152
if ($httpClient === null) {
153153
$this->conversationsAPIHttpClient = new Common\HttpClient(

0 commit comments

Comments
 (0)