X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fsearch%2FSearchResult.php;h=6c406e7e1686effeefbaed3370e51e4984b29fa1;hb=6e9b4f0e9ce4ccd6089c18b205065ef7fa077484;hp=d384ae96c88fc38d7e9a43169e87d7f81fbed093;hpb=13d083b2065092b4bc48288a8ecdee9270fdb19e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/search/SearchResult.php b/includes/search/SearchResult.php index d384ae96c8..6c406e7e16 100644 --- a/includes/search/SearchResult.php +++ b/includes/search/SearchResult.php @@ -71,7 +71,7 @@ class SearchResult { $this->mTitle = $title; if ( !is_null( $this->mTitle ) ) { $id = false; - Hooks::run( 'SearchResultInitFromTitle', array( $title, &$id ) ); + Hooks::run( 'SearchResultInitFromTitle', [ $title, &$id ] ); $this->mRevision = Revision::newFromTitle( $this->mTitle, $id, Revision::READ_NORMAL ); if ( $this->mTitle->getNamespace() === NS_FILE ) { @@ -165,7 +165,7 @@ class SearchResult { } /** - * @return Title Title object for the redirect to this page, null if none or not supported + * @return Title|null Title object for the redirect to this page, null if none or not supported */ function getRedirectTitle() { return null; @@ -179,7 +179,8 @@ class SearchResult { } /** - * @return Title Title object (pagename+fragment) for the section, null if none or not supported + * @return Title|null Title object (pagename+fragment) for the section, + * null if none or not supported */ function getSectionTitle() { return null;