diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml
index 7265ab86..a5c3e413 100644
--- a/.github/workflows/analysis.yml
+++ b/.github/workflows/analysis.yml
@@ -32,7 +32,7 @@ jobs:
 
       - uses: shivammathur/setup-php@v2
         with:
-          php-version: 8.3
+          php-version: 8.4
           coverage: none
 
       # Remove unnecessary dependencies not needed in this context
diff --git a/tests/Database/AuthorizeArgsTests/TestAuthorizationArgsQuery.php b/tests/Database/AuthorizeArgsTests/TestAuthorizationArgsQuery.php
index 6944c77b..52baa1cb 100644
--- a/tests/Database/AuthorizeArgsTests/TestAuthorizationArgsQuery.php
+++ b/tests/Database/AuthorizeArgsTests/TestAuthorizationArgsQuery.php
@@ -34,8 +34,8 @@ public function authorize(
         $root,
         array $args,
         $ctx,
-        ResolveInfo $resolveInfo = null,
-        Closure $getSelectFields = null
+        ?ResolveInfo $resolveInfo = null,
+        ?Closure $getSelectFields = null
     ): bool {
         Assert::assertNull($root);