Skip to content

Commit fd8cc94

Browse files
authored
feat: PHP 8.4 compatibility (#209)
* PHP 8.4 compatibility * Added PHP version 8.4 to the pr-validation.yml
1 parent 783111f commit fd8cc94

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/pr-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
strategy:
2020
matrix:
21-
php-versions: ['7.4', '8.1', '8.2', '8.3']
21+
php-versions: ['7.4', '8.1', '8.2', '8.3', '8.4']
2222
steps:
2323
- uses: actions/[email protected]
2424
- name: Setup PHP

src/GraphClientFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public static function createWithMiddleware(HandlerStack $handlerStack): Client
143143
* @param callable|null $handler final handler
144144
* @return HandlerStack
145145
*/
146-
public static function getDefaultHandlerStack(callable $handler = null): HandlerStack
146+
public static function getDefaultHandlerStack(?callable $handler = null): HandlerStack
147147
{
148148
$handlerStack = parent::getDefaultHandlerStack();
149149
if ($handler) {

src/Requests/BaseBatchRequestBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class BaseBatchRequestBuilder
4646
* @param RequestAdapter $requestAdapter
4747
* @param array<string, array{class-string<T>, string}>|null $errorMappings
4848
*/
49-
public function __construct(RequestAdapter $requestAdapter, array $errorMappings = null)
49+
public function __construct(RequestAdapter $requestAdapter, ?array $errorMappings = null)
5050
{
5151
$this->requestAdapter = $requestAdapter;
5252
$this->errorMappings = $errorMappings;

0 commit comments

Comments
 (0)