改名
This commit is contained in:
@@ -245,7 +245,7 @@ class Annotation extends \Snowflake\Annotation\Annotation
|
|||||||
* @param $comment
|
* @param $comment
|
||||||
* @return false|string
|
* @return false|string
|
||||||
*/
|
*/
|
||||||
public function getName($name, $comment)
|
public function getName($name, $comment = [])
|
||||||
{
|
{
|
||||||
$prefix = self::HTTP_EVENT . ltrim($name, ':');
|
$prefix = self::HTTP_EVENT . ltrim($name, ':');
|
||||||
if (isset($comment[2]) && !empty($comment[2])) {
|
if (isset($comment[2]) && !empty($comment[2])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user