ENH Updated deprecation warning message

This commit is contained in:
Sabina Talipova 2023-02-28 21:31:46 +13:00
parent 6669d54f59
commit 05674adf51
1 changed files with 6 additions and 4 deletions

View File

@ -367,14 +367,16 @@ class MySQLDatabase extends Database implements TransactionManager
public function transactionEnd($chain = false) public function transactionEnd($chain = false)
{ {
$result = $this->getTransactionManager()->transactionEnd();
if ($chain) { 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 $this->getTransactionManager()->transactionStart();
} }
return $result; return $this->getTransactionManager()->transactionEnd();
} }
/** /**