소스 검색

Merge pull request #1048 from joanhey/patch-1

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

+ 1 - 1
src/Timer.php

@@ -78,7 +78,7 @@ class Timer
      * @param EventInterface|null $event
      * @return void
      */
-    public static function init(EventInterface $event = null): void
+    public static function init(?EventInterface $event = null): void
     {
         if ($event) {
             self::$event = $event;