Skip to content

Commit

Permalink
Fix psalm issue (yiisoft#233) better solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Aug 20, 2023
1 parent c7b4fc2 commit 0291cf2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,7 @@ protected function internalExecute(?string $rawSql): void
&& $this->db->getTransaction() === null
) {
$this->db->transaction(
function () use ($rawSql): void {
$this->internalExecute($rawSql);
},
fn () => $this->internalExecute($rawSql),
$this->isolationLevel
);
} else {
Expand Down

0 comments on commit 0291cf2

Please sign in to comment.