This commit is contained in:
2020-09-01 04:24:36 +08:00
parent 1c28ead926
commit 6cdb827416
2 changed files with 9 additions and 18 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ class Websocket extends Annotation
* @param $comment
* @return false|string
*/
public function getName($events, $comment)
public function getName($events, $comment = [])
{
$prefix = rtrim('WEBSOCKET:ANNOTATION:' . $events, ':');
if (isset($comment[2])) {