Selaa lähdekoodia

Add a note about missing break in switch statement.

[ci skip]
Daniele Alessandri 11 vuotta sitten
vanhempi
commit
f5a7d8ece8
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      lib/Predis/PubSub/Consumer.php

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

@@ -119,6 +119,8 @@ class Consumer extends AbstractConsumer
                 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(