mirror of
https://github.com/predis/predis.git
synced 2026-09-13 20:07:28 +00:00
Move member variable initialization.
This commit is contained in:
@@ -36,7 +36,7 @@ class MasterSlaveReplication implements ReplicationInterface
|
||||
/**
|
||||
* @var NodeConnectionInterface[]
|
||||
*/
|
||||
protected $slaves;
|
||||
protected $slaves = array();
|
||||
|
||||
/**
|
||||
* @var NodeConnectionInterface
|
||||
@@ -48,7 +48,6 @@ class MasterSlaveReplication implements ReplicationInterface
|
||||
*/
|
||||
public function __construct(ReplicationStrategy $strategy = null)
|
||||
{
|
||||
$this->slaves = array();
|
||||
$this->strategy = $strategy ?: new ReplicationStrategy();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user