diff --git a/HttpServer/Route/Router.php b/HttpServer/Route/Router.php index 94fe3749..9187c51f 100644 --- a/HttpServer/Route/Router.php +++ b/HttpServer/Route/Router.php @@ -38,7 +38,7 @@ class Router extends Application implements RouterInterface public array $methods = ['get', 'post', 'options', 'put', 'delete', 'receive']; - public Closure|null $middleware = null; + public ?Closure $middleware = null; public bool $useTree = false;