Skip to content

Commit 06aa7b0

Browse files
committed
Wrapping callback not necessary
1 parent 3de8412 commit 06aa7b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bus/MongoBatchRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public function delete(string $batchId): void
193193
#[Override]
194194
public function transaction(Closure $callback): mixed
195195
{
196-
return $this->connection->transaction(fn () => $callback());
196+
return $this->connection->transaction($callback);
197197
}
198198

199199
/** Rollback the last database transaction for the connection. */

0 commit comments

Comments
 (0)