We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88879b3 commit 086213bCopy full SHA for 086213b
src/Connection.php
@@ -1279,19 +1279,9 @@ public function transactional(Closure $func)
1279
{
1280
$this->beginTransaction();
1281
1282
- $successful = false;
1283
-
1284
try {
1285
$res = $func($this);
1286
1287
- $successful = true;
1288
- } finally {
1289
- if (! $successful) {
1290
- $this->rollBack();
1291
- }
1292
1293
1294
- try {
1295
$this->commit();
1296
} finally {
1297
if ($this->isTransactionActive()) {
0 commit comments