This commit is contained in:
2023-07-20 15:01:24 +08:00
parent d4219b902a
commit 4c6dbc9b3c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -144,7 +144,7 @@ class Connection extends Component
/**
* @return PDO
* @throws Exception
* @throws Kiri\Exception\ConfigException
*/
public function getConnection(): PDO
{
@@ -255,7 +255,7 @@ class Connection extends Component
* 回收链接
* @throws
*/
public function release(PDO $PDO): void
public function release(?PDO $PDO): void
{
$this->pool()->push($this->cds, $PDO);
}