Added argument type declaration to MasterSlaveConnection::connect()

parent ff1501a1
......@@ -126,10 +126,7 @@ class MasterSlaveConnection extends Connection
return $this->_conn !== null && $this->_conn === $this->connections['master'];
}
/**
* {@inheritDoc}
*/
public function connect($connectionName = null) : void
public function connect(?string $connectionName = null) : void
{
$requestedConnectionChange = ($connectionName !== null);
$connectionName = $connectionName ?: 'slave';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment