From 589169e4d4112addf0db12af730d6308f1c91954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 23 Feb 2021 14:18:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Annotation/Route/After.php | 4 ++-- Annotation/Route/Interceptor.php | 4 ++-- Annotation/Route/Limits.php | 4 ++-- Annotation/Route/Middleware.php | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) 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; }