From 6dd720c3ef138fec99eabf42e9219bddca509e1e Mon Sep 17 00:00:00 2001 From: Maxim Babichev Date: Sat, 15 Oct 2022 17:20:44 +0300 Subject: [PATCH] Revert "remove deadcode" This reverts commit 47f75246e3751daf9fc403946dd95917edfb5f83. --- src/Internal/Exceptions/ExceptionInterface.php | 5 +++++ .../Exceptions/TransactionStartException.php | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 src/Internal/Exceptions/TransactionStartException.php diff --git a/src/Internal/Exceptions/ExceptionInterface.php b/src/Internal/Exceptions/ExceptionInterface.php index f2c5fb4b0..944581b8e 100644 --- a/src/Internal/Exceptions/ExceptionInterface.php +++ b/src/Internal/Exceptions/ExceptionInterface.php @@ -31,4 +31,9 @@ interface ExceptionInterface extends Throwable public const TRANSACTION_FAILED = 1 << 10; public const MODEL_NOT_FOUND = 1 << 11; + + /** + * @deprecated no longer used + */ + public const TRANSACTION_START = 1 << 12; } diff --git a/src/Internal/Exceptions/TransactionStartException.php b/src/Internal/Exceptions/TransactionStartException.php new file mode 100644 index 000000000..b8a4d8c17 --- /dev/null +++ b/src/Internal/Exceptions/TransactionStartException.php @@ -0,0 +1,15 @@ +