From ee5e4a754ab5a2aeb599a30138b5cab3d85b91d5 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Fri, 9 Mar 2018 22:40:05 +0100 Subject: [PATCH] Don't catch Exception anymore --- lib/Doctrine/DBAL/Connection.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/Doctrine/DBAL/Connection.php b/lib/Doctrine/DBAL/Connection.php index 74c367726f4..10d1d909055 100644 --- a/lib/Doctrine/DBAL/Connection.php +++ b/lib/Doctrine/DBAL/Connection.php @@ -1148,7 +1148,6 @@ public function lastInsertId($seqName = null) * * @return mixed The value returned by $func * - * @throws Exception * @throws Throwable */ public function transactional(Closure $func) @@ -1159,9 +1158,6 @@ public function transactional(Closure $func) $this->commit(); return $res; - } catch (Exception $e) { - $this->rollBack(); - throw $e; } catch (Throwable $e) { $this->rollBack(); throw $e;