X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdao%2FDBAccessBase.php;h=6a1bbd6e31acb9f4a0cece5f22751590c713f206;hb=30f4b3c103997bd9154b247cda8282eb8bd0ba66;hp=2a0fde37ca0e3c79896f2a288a2aa8a04737e87c;hpb=f73c54a0a47585f4baf1aee38a4a1a059bfb259c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/dao/DBAccessBase.php b/includes/dao/DBAccessBase.php index 2a0fde37ca..6a1bbd6e31 100644 --- a/includes/dao/DBAccessBase.php +++ b/includes/dao/DBAccessBase.php @@ -29,7 +29,7 @@ */ abstract class DBAccessBase implements IDBAccessObject { /** - * @var String|bool $wiki The target wiki's name. This must be an ID + * @var string|bool $wiki The target wiki's name. This must be an ID * that LBFactory can understand. */ protected $wiki = false; @@ -53,9 +53,9 @@ abstract class DBAccessBase implements IDBAccessObject { * @param int $id Which connection to use * @param array $groups Query groups * - * @return DatabaseBase + * @return Database */ - protected function getConnection( $id, $groups = array() ) { + protected function getConnection( $id, $groups = [] ) { $loadBalancer = wfGetLB( $this->wiki ); return $loadBalancer->getConnection( $id, $groups, $this->wiki ); @@ -68,9 +68,9 @@ abstract class DBAccessBase implements IDBAccessObject { * * @since 1.21 * - * @param DatabaseBase $db the database connection to release. + * @param Database $db The database connection to release. */ - protected function releaseConnection( DatabaseBase $db ) { + protected function releaseConnection( Database $db ) { if ( $this->wiki !== false ) { $loadBalancer = $this->getLoadBalancer(); $loadBalancer->reuseConnection( $db );