This commit is contained in:
2023-04-04 13:46:01 +08:00
parent 68e225c3b4
commit 0c2a419d0b
+2 -2
View File
@@ -93,11 +93,11 @@ class Connection extends Component
/** /**
* @param string $cds * @param string $cds
* @return PDO|null * @return \Database\Mysql\PDO|bool|null
* @throws ConfigException * @throws ConfigException
* @throws Exception * @throws Exception
*/ */
public function get(string $cds): ?\Database\Mysql\PDO public function get(string $cds): null|\Database\Mysql\PDO|bool
{ {
if (!$this->pool->hasChannel($cds)) { if (!$this->pool->hasChannel($cds)) {
throw new Exception('Queue not exists.'); throw new Exception('Queue not exists.');