This commit is contained in:
2020-11-02 15:11:17 +08:00
parent d35bf87642
commit 81a4862dc2
+1 -1
View File
@@ -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])) {