From 2f8e69ee456f1f58d523084299cec1dbdaa6bfb3 Mon Sep 17 00:00:00 2001 From: Ashley Coles Date: Wed, 4 May 2022 14:15:10 +0100 Subject: [PATCH] Adding types to RoutingMiddleware --- Slim/Middleware/RoutingMiddleware.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Slim/Middleware/RoutingMiddleware.php b/Slim/Middleware/RoutingMiddleware.php index ea3199198..169b4a375 100644 --- a/Slim/Middleware/RoutingMiddleware.php +++ b/Slim/Middleware/RoutingMiddleware.php @@ -24,15 +24,9 @@ class RoutingMiddleware implements MiddlewareInterface { - /** - * @var RouteResolverInterface - */ - protected $routeResolver; + protected RouteResolverInterface $routeResolver; - /** - * @var RouteParserInterface - */ - protected $routeParser; + protected RouteParserInterface $routeParser; /** * @param RouteResolverInterface $routeResolver