Skip to content

Commit eed1c58

Browse files
committed
fix nullable deprecated php80 warning
1 parent 0913dc6 commit eed1c58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Flight.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public static function halt(int $code = 200, string $message = '', bool $actuall
7575
* @param mixed[] $params
7676
* @param ?callable(T): void $callback
7777
*/
78-
public static function register(string $name, string $class, array $params = [], callable $callback = null): void
78+
public static function register(string $name, string $class, array $params = [], ?callable $callback = null): void
7979
{
8080
self::app()->register($name, $class, $params, $callback);
8181
}

0 commit comments

Comments
 (0)