소스 검색

Merge pull request #1047 from joanhey/patch-2

Fix nullable for PHP 8.4
walkor 1 년 전
부모
커밋
dae4bc70eb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Protocols/Http.php

+ 1 - 1
src/Protocols/Http.php

@@ -73,7 +73,7 @@ class Http
      * @param class-string|null $className
      * @return string
      */
-    public static function requestClass(string $className = null): string
+    public static function requestClass(?string $className = null): string
     {
         if ($className !== null) {
             static::$requestClass = $className;