diff --git a/Annotation/Route/After.php b/Annotation/Route/After.php index 86ffcf94..2587ed5e 100644 --- a/Annotation/Route/After.php +++ b/Annotation/Route/After.php @@ -24,10 +24,6 @@ use Snowflake\Snowflake; */ public function __construct(public string|array $after) { - if (!is_string($this->after)) { - return; - } - $this->after = [$this->after]; } diff --git a/Annotation/Route/Interceptor.php b/Annotation/Route/Interceptor.php index a934f324..00b413b0 100644 --- a/Annotation/Route/Interceptor.php +++ b/Annotation/Route/Interceptor.php @@ -24,10 +24,6 @@ use Snowflake\Snowflake; */ public function __construct(public string|array $interceptor) { - if (!is_string($this->interceptor)) { - return; - } - $this->interceptor = [$this->interceptor]; } diff --git a/Annotation/Route/Limits.php b/Annotation/Route/Limits.php index 68e8796b..bc893dbf 100644 --- a/Annotation/Route/Limits.php +++ b/Annotation/Route/Limits.php @@ -24,10 +24,6 @@ use Snowflake\Snowflake; */ public function __construct(public string|array $limits) { - if (!is_string($this->limits)) { - return; - } - $this->limits = [$this->limits]; } diff --git a/Annotation/Route/Middleware.php b/Annotation/Route/Middleware.php index 0fd9bbf4..9e92c289 100644 --- a/Annotation/Route/Middleware.php +++ b/Annotation/Route/Middleware.php @@ -25,10 +25,6 @@ use Snowflake\Snowflake; */ public function __construct(public string|array $middleware) { - if (!is_string($this->middleware)) { - return; - } - $this->middleware = [$this->middleware]; }