Skip to content

Commit 4dc1258

Browse files
andrehankeandrehanke
authored andcommitted
enhance: removido catch sem tratamento de exceção
1 parent adaddf8 commit 4dc1258

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Database/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function transaction(Closure $callback, $attempts = 1)
6767
// If we catch an exception, we will roll back so nothing gets messed
6868
// up in the database. Then we'll re-throw the exception so it can
6969
// be handled how the developer sees fit for their applications.
70-
catch (Exception $e) {
70+
catch (\Exception|\PDOException $e) {
7171
$this->pdo->exec('ROLLBACK TRAN');
7272

7373
throw $e;

0 commit comments

Comments
 (0)