diff --git a/Annotation/Route/After.php b/Annotation/Route/After.php index 020d3372..86ffcf94 100644 --- a/Annotation/Route/After.php +++ b/Annotation/Route/After.php @@ -33,9 +33,9 @@ use Snowflake\Snowflake; /** * @param array $handler - * @return array|string + * @return After */ - public function execute(array $handler): array|string + public function execute(array $handler): static { return $this; } diff --git a/Annotation/Route/Interceptor.php b/Annotation/Route/Interceptor.php index f4f3273c..a934f324 100644 --- a/Annotation/Route/Interceptor.php +++ b/Annotation/Route/Interceptor.php @@ -33,9 +33,9 @@ use Snowflake\Snowflake; /** * @param array $handler - * @return array|string + * @return Interceptor */ - public function execute(array $handler): array|string + public function execute(array $handler): static { return $this; } diff --git a/Annotation/Route/Limits.php b/Annotation/Route/Limits.php index 2fb71cc3..68e8796b 100644 --- a/Annotation/Route/Limits.php +++ b/Annotation/Route/Limits.php @@ -33,9 +33,9 @@ use Snowflake\Snowflake; /** * @param array $handler - * @return array|string + * @return Limits */ - public function execute(array $handler): array|string + public function execute(array $handler): static { return $this; } diff --git a/Annotation/Route/Middleware.php b/Annotation/Route/Middleware.php index 4e41983f..0fd9bbf4 100644 --- a/Annotation/Route/Middleware.php +++ b/Annotation/Route/Middleware.php @@ -34,9 +34,9 @@ use Snowflake\Snowflake; /** * @param array $handler - * @return array|string + * @return Middleware */ - public function execute(array $handler): array|string + public function execute(array $handler): static { return $this; }