dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add @deprecated tags to various class_alias calls
[lhc/web/wiklou.git]
/
includes
/
libs
/
rdbms
/
exception
/
DBConnectionError.php
diff --git
a/includes/libs/rdbms/exception/DBConnectionError.php
b/includes/libs/rdbms/exception/DBConnectionError.php
index
dca1302
..
4c5bc9a
100644
(file)
--- a/
includes/libs/rdbms/exception/DBConnectionError.php
+++ b/
includes/libs/rdbms/exception/DBConnectionError.php
@@
-18,7
+18,7
@@
* @file
* @ingroup Database
*/
* @file
* @ingroup Database
*/
-
use Wikimedia\Rdbms\IDatabase
;
+
namespace Wikimedia\Rdbms
;
/**
* @ingroup Database
/**
* @ingroup Database
@@
-28,7
+28,7
@@
class DBConnectionError extends DBExpectedError {
* @param IDatabase $db Object throwing the error
* @param string $error Error text
*/
* @param IDatabase $db Object throwing the error
* @param string $error Error text
*/
- function __construct( IDatabase $db = null, $error = 'unknown error' ) {
+
public
function __construct( IDatabase $db = null, $error = 'unknown error' ) {
$msg = 'Cannot access the database';
if ( trim( $error ) != '' ) {
$msg .= ": $error";
$msg = 'Cannot access the database';
if ( trim( $error ) != '' ) {
$msg .= ": $error";
@@
-37,3
+37,8
@@
class DBConnectionError extends DBExpectedError {
parent::__construct( $db, $msg );
}
}
parent::__construct( $db, $msg );
}
}
+
+/**
+ * @deprecated since 1.29
+ */
+class_alias( DBConnectionError::class, 'DBConnectionError' );