Skip to content

Commit

Permalink
Fix psalm issue #275
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Aug 20, 2023
1 parent be63e3c commit edbe075
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit edbe075

Please sign in to comment.