X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FTitleArray.php;h=a1eabe5b25504e25c8b27742e41a278fa23560ba;hb=a3dfd8ee587608f14f25b63f87803999381041b1;hp=0fb5b1e96ba06f428f866cbecedc23228a1f0d5b;hpb=96366c1cf1966ca07e8f0b4361bbca28bfaf43a0;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 ) {