diff --git a/src/Command.php b/src/Command.php index 7ddb7f4..5b809a2 100644 --- a/src/Command.php +++ b/src/Command.php @@ -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 {