From 00c5d7de19b7b3fa2f5bc7de8939366eb1326bb8 Mon Sep 17 00:00:00 2001 From: Daniele Alessandri Date: Sun, 15 May 2016 17:09:43 +0200 Subject: [PATCH] Apply minor styling fix. --- src/Connection/Aggregate/MasterSlaveReplication.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Connection/Aggregate/MasterSlaveReplication.php b/src/Connection/Aggregate/MasterSlaveReplication.php index 84ace894..ca99aa8e 100644 --- a/src/Connection/Aggregate/MasterSlaveReplication.php +++ b/src/Connection/Aggregate/MasterSlaveReplication.php @@ -158,6 +158,7 @@ class MasterSlaveReplication implements ReplicationInterface if (!$connection instanceof NodeConnectionInterface) { $connection = $this->getConnectionById($connection); } + if ($connection !== $this->master && !in_array($connection, $this->slaves, true)) { throw new \InvalidArgumentException('Invalid connection or connection not found.'); }