From 03eae37eae24b87105b3b1cccabd806368665285 Mon Sep 17 00:00:00 2001 From: Riccardo Venturini Date: Thu, 23 Nov 2023 09:56:21 +0100 Subject: [PATCH] using attributes --- src/RouteMaze.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/RouteMaze.php b/src/RouteMaze.php index 8ee5130..7784848 100755 --- a/src/RouteMaze.php +++ b/src/RouteMaze.php @@ -110,7 +110,6 @@ protected function addRoutesFromAttributes(string $class, Collection $pathParame $methodName = $methodName->kebab(); $uri = $classPrefix->append('/', $methodName, $this->getParameters($method, $pathParameters)); foreach ($method->getAttributes() as $attribute) { - /** @var ReflectionAttribute $attribute */ $attribute = $attribute->newInstance(); if (is_subclass_of($attribute, Method::class)) { $routes[] = Route::addRoute(