diff --git a/composer.json b/composer.json index 1e0ceb08e..0281a0b97 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ ], "minimum-stability": "dev", "require": { - "php": ">=5.4", + "php": ">=7.0", "ext-pdo": "*", "doctrine/collections": "~1.2", "doctrine/dbal": ">=2.5-dev,<2.6-dev", diff --git a/lib/Doctrine/ORM/UnitOfWork.php b/lib/Doctrine/ORM/UnitOfWork.php index fe12e55df..8e0f209c8 100644 --- a/lib/Doctrine/ORM/UnitOfWork.php +++ b/lib/Doctrine/ORM/UnitOfWork.php @@ -408,7 +408,7 @@ class UnitOfWork implements PropertyChangedListener } $conn->commit(); - } catch (Exception $e) { + } catch (\Throwable $e) { $this->em->close(); $conn->rollback();