package updates
This commit is contained in:
@@ -62,7 +62,7 @@ class DatabaseManager implements ConnectionResolverInterface
|
||||
*/
|
||||
public function connection($name = null)
|
||||
{
|
||||
list($database, $type) = $this->parseConnectionName($name);
|
||||
[$database, $type] = $this->parseConnectionName($name);
|
||||
|
||||
$name = $name ?: $database;
|
||||
|
||||
@@ -180,9 +180,9 @@ class DatabaseManager implements ConnectionResolverInterface
|
||||
*/
|
||||
protected function setPdoForType(Connection $connection, $type = null)
|
||||
{
|
||||
if ($type == 'read') {
|
||||
if ($type === 'read') {
|
||||
$connection->setPdo($connection->getReadPdo());
|
||||
} elseif ($type == 'write') {
|
||||
} elseif ($type === 'write') {
|
||||
$connection->setReadPdo($connection->getPdo());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user