From 4d73fe5f7f1707a5198d2e101ed17ded80a38ca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Hub=C3=ADk?= Date: Fri, 28 Mar 2025 09:27:14 +0100 Subject: [PATCH 1/2] PHP 8.4 compatibility --- src/GraphClientFactory.php | 2 +- src/Requests/BaseBatchRequestBuilder.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GraphClientFactory.php b/src/GraphClientFactory.php index d61520b7..91383142 100644 --- a/src/GraphClientFactory.php +++ b/src/GraphClientFactory.php @@ -143,7 +143,7 @@ public static function createWithMiddleware(HandlerStack $handlerStack): Client * @param callable|null $handler final handler * @return HandlerStack */ - public static function getDefaultHandlerStack(callable $handler = null): HandlerStack + public static function getDefaultHandlerStack(?callable $handler = null): HandlerStack { $handlerStack = parent::getDefaultHandlerStack(); if ($handler) { diff --git a/src/Requests/BaseBatchRequestBuilder.php b/src/Requests/BaseBatchRequestBuilder.php index 0cea36fa..c3cc3634 100644 --- a/src/Requests/BaseBatchRequestBuilder.php +++ b/src/Requests/BaseBatchRequestBuilder.php @@ -46,7 +46,7 @@ class BaseBatchRequestBuilder * @param RequestAdapter $requestAdapter * @param array, string}>|null $errorMappings */ - public function __construct(RequestAdapter $requestAdapter, array $errorMappings = null) + public function __construct(RequestAdapter $requestAdapter, ?array $errorMappings = null) { $this->requestAdapter = $requestAdapter; $this->errorMappings = $errorMappings; From 915e2f4bea089b8666e33f03518f1763e0df9fc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Hub=C3=ADk?= Date: Fri, 28 Mar 2025 12:29:03 +0100 Subject: [PATCH 2/2] Added PHP version 8.4 to the pr-validation.yml --- .github/workflows/pr-validation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index eb004ee5..65bdc31c 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php-versions: ['7.4', '8.1', '8.2', '8.3'] + php-versions: ['7.4', '8.1', '8.2', '8.3', '8.4'] steps: - uses: actions/checkout@v4.2.2 - name: Setup PHP