From 0ef0c77b3d85ffc78c488f16f914b65d371b00f2 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 23 Feb 2021 02:11:52 +0800 Subject: [PATCH] modify --- System/Pool/ObjectPool.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System/Pool/ObjectPool.php b/System/Pool/ObjectPool.php index a62b6a58..c49973d2 100644 --- a/System/Pool/ObjectPool.php +++ b/System/Pool/ObjectPool.php @@ -35,7 +35,7 @@ class ObjectPool extends \Snowflake\Abstracts\Pool public function getConnection(array $config, bool $isMaster): mixed { if (is_object($config[0])) { - return $config[0]; + $config[0] = get_class($config[0]) ; } return $this->get(md5($config[0]), $config); }