From 0291cf2d286340fc72dd01123492d033c98d36ed Mon Sep 17 00:00:00 2001 From: Tigrov Date: Sun, 20 Aug 2023 09:17:48 +0700 Subject: [PATCH] Fix psalm issue (#233) better solution --- src/Command.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 {