We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0913dc6 commit eed1c58Copy full SHA for eed1c58
1 file changed
src/Flight.php
@@ -75,7 +75,7 @@ public static function halt(int $code = 200, string $message = '', bool $actuall
75
* @param mixed[] $params
76
* @param ?callable(T): void $callback
77
*/
78
- public static function register(string $name, string $class, array $params = [], callable $callback = null): void
+ public static function register(string $name, string $class, array $params = [], ?callable $callback = null): void
79
{
80
self::app()->register($name, $class, $params, $callback);
81
}
0 commit comments