diff --git a/Connection.php b/Connection.php index 7e484d2..e234e42 100644 --- a/Connection.php +++ b/Connection.php @@ -183,7 +183,7 @@ class Connection extends Component */ public function getConnection(): PDO { - $client = $this->connections->get($this->cds); + return $this->connections->get($this->cds); if ($client === false) { throw new Exception('waite db client timeout.'); }