X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FTitleArray.php;h=bf2344bbb7717f93089c3e6f47d8ae3050dc2154;hp=0fb5b1e96ba06f428f866cbecedc23228a1f0d5b;hb=89539f2aa1b158fdcc703ad053e2580cb97a6385;hpb=61b2f07f6b4eb3ff676130126b40f519e125690c diff --git a/includes/TitleArray.php b/includes/TitleArray.php index 0fb5b1e96b..bf2344bbb7 100644 --- a/includes/TitleArray.php +++ b/includes/TitleArray.php @@ -24,6 +24,8 @@ * @file */ +use Wikimedia\Rdbms\ResultWrapper; + /** * The TitleArray class only exists to provide the newFromResult method at pre- * sent. @@ -37,7 +39,7 @@ abstract class TitleArray implements Iterator { */ static function newFromResult( $res ) { $array = null; - if ( !Hooks::run( 'TitleArrayFromResult', array( &$array, $res ) ) ) { + if ( !Hooks::run( 'TitleArrayFromResult', [ &$array, $res ] ) ) { return null; } if ( $array === null ) {