Skip to content

Commit

Permalink
Merge pull request #235 from Tigrov/fix_psalm_issue
Browse files Browse the repository at this point in the history
Fix psalm issue (#233) better solution
  • Loading branch information
Tigrov authored Aug 20, 2023
2 parents c7b4fc2 + 0291cf2 commit 6bb534e
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 6bb534e

Please sign in to comment.