Skip to content

Commit

Permalink
Merge pull request yiisoft#234 from Tigrov/fix_psalm_issue
Browse files Browse the repository at this point in the history
Fix psalm issue (yiisoft#233)
  • Loading branch information
Tigrov authored Aug 20, 2023
2 parents 1549c26 + c88dcea commit c7b4fc2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -136,7 +135,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 {
Expand Down

0 comments on commit c7b4fc2

Please sign in to comment.