From 79ac3811b5a4e81f9c10aba0f58fe5208518ef68 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Sun, 20 Aug 2023 08:07:45 +0700 Subject: [PATCH 1/2] Fix psalm issue (#233) --- src/Command.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Command.php b/src/Command.php index d1be3a5..b06e09c 100644 --- a/src/Command.php +++ b/src/Command.php @@ -136,7 +136,9 @@ protected function internalExecute(?string $rawSql): void && $this->db->getTransaction() === null ) { $this->db->transaction( - fn (PdoConnectionInterface $db) => $this->internalExecute($rawSql), + function () use ($rawSql): void { + $this->internalExecute($rawSql); + }, $this->isolationLevel ); } else { From 21f59b5f3420c2982b5883b3d04af74d082c25f8 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Sun, 20 Aug 2023 01:10:57 +0000 Subject: [PATCH 2/2] Apply fixes from StyleCI --- src/Command.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Command.php b/src/Command.php index b06e09c..7ddb7f4 100644 --- a/src/Command.php +++ b/src/Command.php @@ -8,7 +8,6 @@ use PDOException; use Throwable; use Yiisoft\Db\Driver\Pdo\AbstractPdoCommand; -use Yiisoft\Db\Driver\Pdo\PdoConnectionInterface; use Yiisoft\Db\Exception\ConvertException; use Yiisoft\Db\QueryBuilder\AbstractQueryBuilder; use Yiisoft\Db\QueryBuilder\QueryBuilderInterface;