diff --git a/src/Command.php b/src/Command.php index f9cc7329..c1928b6f 100644 --- a/src/Command.php +++ b/src/Command.php @@ -7,7 +7,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\Exception\Exception; use Yiisoft\Db\QueryBuilder\QueryBuilderInterface; @@ -45,7 +44,7 @@ protected function internalExecute(string|null $rawSql): void && $this->db->getTransaction() === null ) { $this->db->transaction( - fn (PdoConnectionInterface $db) => $this->internalExecute($rawSql), + fn () => $this->internalExecute($rawSql), $this->isolationLevel ); } else {