From d8141c21db72ea2d97aee7b1a1caab5738a7f720 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 1 Sep 2020 04:15:23 +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 --- http-server/Route/Annotation/Websocket.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http-server/Route/Annotation/Websocket.php b/http-server/Route/Annotation/Websocket.php index d797e9f0..fa4d13dd 100644 --- a/http-server/Route/Annotation/Websocket.php +++ b/http-server/Route/Annotation/Websocket.php @@ -54,9 +54,9 @@ class Websocket extends Annotation */ public function getName($events, $comment) { - $prefix = 'WEBSOCKET:ANNOTATION:' . $events; + $prefix = rtrim('WEBSOCKET:ANNOTATION:' . $events, ':'); if (isset($comment[2])) { - return rtrim($prefix, ':') . ':' . $comment[2]; + return $prefix . ':' . $comment[2]; } return $prefix; }