X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2FTitleArray.php;h=a1eabe5b25504e25c8b27742e41a278fa23560ba;hb=cd8568ad8930e9ea72dad315877fc8ea23fc4c63;hp=0fb5b1e96ba06f428f866cbecedc23228a1f0d5b;hpb=69bd2e54d698f32120940f80f3493479297ecf74;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/TitleArray.php b/includes/TitleArray.php index 0fb5b1e96b..a1eabe5b25 100644 --- a/includes/TitleArray.php +++ b/includes/TitleArray.php @@ -24,20 +24,22 @@ * @file */ +use Wikimedia\Rdbms\IResultWrapper; + /** * The TitleArray class only exists to provide the newFromResult method at pre- * sent. */ abstract class TitleArray implements Iterator { /** - * @param ResultWrapper $res A SQL result including at least page_namespace and + * @param IResultWrapper $res A SQL result including at least page_namespace and * page_title -- also can have page_id, page_len, page_is_redirect, * page_latest (if those will be used). See Title::newFromRow. * @return TitleArrayFromResult */ static function newFromResult( $res ) { $array = null; - if ( !Hooks::run( 'TitleArrayFromResult', array( &$array, $res ) ) ) { + if ( !Hooks::run( 'TitleArrayFromResult', [ &$array, $res ] ) ) { return null; } if ( $array === null ) { @@ -47,7 +49,7 @@ abstract class TitleArray implements Iterator { } /** - * @param ResultWrapper $res + * @param IResultWrapper $res * @return TitleArrayFromResult */ protected static function newFromResult_internal( $res ) {