Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mindplay-dk authored Aug 10, 2018
1 parent 30eb3e0 commit da51daf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/framework/pdo/PDOConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ public function transact(callable $func)

try {
$commit = call_user_func($func);
} catch (Throwable $error) {
} catch (Throwable $exception) {
$commit = false; // PHP 7+
} catch (Exception $error) {
} catch (Exception $exception) {
$commit = false; // PHP < 7 (compatibility)
}

Expand Down

0 comments on commit da51daf

Please sign in to comment.