Added argument type declaration to MasterSlaveConnection::connect()

parent ff1501a1
...@@ -126,10 +126,7 @@ class MasterSlaveConnection extends Connection ...@@ -126,10 +126,7 @@ class MasterSlaveConnection extends Connection
return $this->_conn !== null && $this->_conn === $this->connections['master']; return $this->_conn !== null && $this->_conn === $this->connections['master'];
} }
/** public function connect(?string $connectionName = null) : void
* {@inheritDoc}
*/
public function connect($connectionName = null) : void
{ {
$requestedConnectionChange = ($connectionName !== null); $requestedConnectionChange = ($connectionName !== null);
$connectionName = $connectionName ?: 'slave'; $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