|
@@ -515,8 +515,10 @@ class SentinelReplication implements ReplicationInterface
|
|
/**
|
|
/**
|
|
* Asserts that the specified connection matches an expected role.
|
|
* 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)
|
|
protected function assertConnectionRole(NodeConnectionInterface $connection, $role)
|
|
{
|
|
{
|