dao: Add a type hint to getConnection() and some extra newlines
[lhc/web/wiklou.git] / includes / dao / DBAccessBase.php
index b6ccb53..79c0385 100644 (file)
@@ -59,7 +59,7 @@ abstract class DBAccessBase implements IDBAccessObject {
         *
         * @return IDatabase
         */
-       protected function getConnection( $id, $groups = [] ) {
+       protected function getConnection( $id, array $groups = [] ) {
                $loadBalancer = $this->getLoadBalancer();
 
                return $loadBalancer->getConnection( $id, $groups, $this->wiki );