diff --git a/Connection.php b/Connection.php index b45a13a..10497e7 100644 --- a/Connection.php +++ b/Connection.php @@ -149,7 +149,7 @@ class Connection extends Component */ public function getMasterClient(): PDO { - if ($this->_pdo) { + if ($this->_pdo instanceof PDO) { return $this->_pdo; } return $this->connections()->get([