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])) {