Merge pull request #10709 from creative-commoners/pulls/4/deprecated-args

ENH Updated deprecation warning message
This commit is contained in:
Guy Sartorelli 2023-03-01 14:19:18 +13:00 committed by GitHub
commit 277e97a84f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}
/**