Prechádzať zdrojové kódy

Fix PHP 8.4 explicit nullable

Joan Miquel 1 rok pred
rodič
commit
b88eeb5f00
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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;