فهرست منبع

Add a note about missing break in switch statement.

[ci skip]
Daniele Alessandri 11 سال پیش
والد
کامیت
2aa771004d
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      lib/Predis/PubSub/PubSubContext.php

+ 2 - 0
lib/Predis/PubSub/PubSubContext.php

@@ -115,6 +115,8 @@ class PubSubContext extends AbstractPubSubContext
                 if ($response[2] === 0) {
                     $this->invalidate();
                 }
+                // The missing break here is intentional as we must process
+                // subscriptions and unsubscriptions as standard messages.
 
             case self::MESSAGE:
                 return (object) array(