From 05674adf512006b9430f3b68efee960c8c1b529c Mon Sep 17 00:00:00 2001 From: Sabina Talipova Date: Tue, 28 Feb 2023 21:31:46 +1300 Subject: [PATCH] ENH Updated deprecation warning message --- src/ORM/Connect/MySQLDatabase.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/ORM/Connect/MySQLDatabase.php b/src/ORM/Connect/MySQLDatabase.php index 9200f3a8c..6da201f0d 100644 --- a/src/ORM/Connect/MySQLDatabase.php +++ b/src/ORM/Connect/MySQLDatabase.php @@ -367,14 +367,16 @@ class MySQLDatabase extends Database implements TransactionManager public function transactionEnd($chain = false) { - $result = $this->getTransactionManager()->transactionEnd(); - if ($chain) { - Deprecation::notice('4.4', '$chain argument is deprecated'); + Deprecation::notice( + '4.4.0', + '$chain argument in ' . __METHOD__ . ' is deprecated', + Deprecation::SCOPE_GLOBAL + ); return $this->getTransactionManager()->transactionStart(); } - return $result; + return $this->getTransactionManager()->transactionEnd(); } /**