* @file
*/
+use Wikimedia\Rdbms\ResultWrapper;
+
/**
* The TitleArray class only exists to provide the newFromResult method at pre-
* sent.
*/
static function newFromResult( $res ) {
$array = null;
- if ( !wfRunHooks( 'TitleArrayFromResult', array( &$array, $res ) ) ) {
+ if ( !Hooks::run( 'TitleArrayFromResult', [ &$array, $res ] ) ) {
return null;
}
if ( $array === null ) {