From 8f19ab1c58b741f47263d23747dd43c0a6549a40 Mon Sep 17 00:00:00 2001 From: Franck DAKIA Date: Wed, 23 Aug 2023 19:28:24 +0000 Subject: [PATCH 1/2] Fixes exception type --- src/Command/CommandHandlerTransactionService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Command/CommandHandlerTransactionService.php b/src/Command/CommandHandlerTransactionService.php index 2c08649..b516e31 100644 --- a/src/Command/CommandHandlerTransactionService.php +++ b/src/Command/CommandHandlerTransactionService.php @@ -5,7 +5,7 @@ use Bow\CQRS\Command\CommandInterface; use Bow\CQRS\Command\CommandHandlerInterface; use Bow\Database\Database; -use Bow\Database\Exception\DatabaseException; +use Exception; abstract class CommandHandlerTransactionService implements CommandHandlerInterface { @@ -28,7 +28,7 @@ public function process(CommandInterface $command): mixed Database::commit(); return $result; - } catch (DatabaseException $e) { + } catch (Exception $e) { Database::rollback(); throw $e; } From 7753132e976bb9ec313a9671f289e99f4e41a527 Mon Sep 17 00:00:00 2001 From: Franck DAKIA Date: Wed, 23 Aug 2023 19:33:59 +0000 Subject: [PATCH 2/2] Update packages version --- composer.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.lock b/composer.lock index 5d17792..b056acd 100644 --- a/composer.lock +++ b/composer.lock @@ -2323,12 +2323,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "ba39bcdbe12204b93d1b49f80d4aa6d813973205" + "reference": "d0103c021ebd4323abc2fec6a7d5d9c701c10da9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/ba39bcdbe12204b93d1b49f80d4aa6d813973205", - "reference": "ba39bcdbe12204b93d1b49f80d4aa6d813973205", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/d0103c021ebd4323abc2fec6a7d5d9c701c10da9", + "reference": "d0103c021ebd4323abc2fec6a7d5d9c701c10da9", "shasum": "" }, "require": { @@ -2417,7 +2417,7 @@ "type": "tidelift" } ], - "time": "2023-08-20T08:23:28+00:00" + "time": "2023-08-23T04:21:34+00:00" }, { "name": "sebastian/cli-parser",