Skip to content

Commit ed2a1b5

Browse files
authored
feat: PHP 8.4 compatibility (#1665)
* PHP 8.4 compatibility * Added PHP versions to the pr-validation.yml
1 parent 851b38a commit ed2a1b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/pr-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
strategy:
2121
matrix:
22-
php-versions: ['7.4', '8.0', '8.1', '8.2']
22+
php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
2323
steps:
2424
- name: Setup PHP
2525
uses: shivammathur/setup-php@v2

src/GraphRequestAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class GraphRequestAdapter extends BaseGraphRequestAdapter
2929
* @param AuthenticationProvider $authenticationProvider
3030
* @param Client|null $httpClient
3131
*/
32-
public function __construct(AuthenticationProvider $authenticationProvider, Client $httpClient = null)
32+
public function __construct(AuthenticationProvider $authenticationProvider, ?Client $httpClient = null)
3333
{
3434
parent::__construct($this->getTelemetryConfig(), $authenticationProvider, null, null, $httpClient);
3535
}

0 commit comments

Comments
 (0)