From 0c2a419d0bb5f628d3fc45c823a55633e2e3f47b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 4 Apr 2023 13:46:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kiri-engine/Pool/Connection.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiri-engine/Pool/Connection.php b/kiri-engine/Pool/Connection.php index 48a22de8..ed63a970 100644 --- a/kiri-engine/Pool/Connection.php +++ b/kiri-engine/Pool/Connection.php @@ -93,11 +93,11 @@ class Connection extends Component /** * @param string $cds - * @return PDO|null + * @return \Database\Mysql\PDO|bool|null * @throws ConfigException * @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)) { throw new Exception('Queue not exists.');