From 81a4862dc2f93d2c7e5793fe0e49c8978c399bba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 2 Nov 2020 15:11:17 +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 --- HttpServer/Route/Annotation/Annotation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Route/Annotation/Annotation.php b/HttpServer/Route/Annotation/Annotation.php index 7e76d896..da6e8419 100644 --- a/HttpServer/Route/Annotation/Annotation.php +++ b/HttpServer/Route/Annotation/Annotation.php @@ -245,7 +245,7 @@ class Annotation extends \Snowflake\Annotation\Annotation * @param $comment * @return false|string */ - public function getName($name, $comment) + public function getName($name, $comment = []) { $prefix = self::HTTP_EVENT . ltrim($name, ':'); if (isset($comment[2]) && !empty($comment[2])) {