Browse Source

Fix PHPDoc of \Predis\Connection\Aggregate\SentinelReplication::assertConnectionRole()

Fabien Villepinte 8 years ago
parent
commit
94ccb2cc3b
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/Connection/Aggregate/SentinelReplication.php

+ 4 - 2
src/Connection/Aggregate/SentinelReplication.php

@@ -515,8 +515,10 @@ class SentinelReplication implements ReplicationInterface
     /**
      * Asserts that the specified connection matches an expected role.
      *
-     * @param NodeConnectionInterface $sentinel Connection to a redis server.
-     * @param string                  $role     Expected role of the server ("master", "slave" or "sentinel").
+     * @param NodeConnectionInterface $connection Connection to a redis server.
+     * @param string                  $role       Expected role of the server ("master", "slave" or "sentinel").
+     *
+     * @throws RoleException
      */
     protected function assertConnectionRole(NodeConnectionInterface $connection, $role)
     {