This resolves a little over 100 "undefined method" warnings on
includes/filerepo/.
Change-Id: I87b6d875a4304d7beadfbc26a66e9a3f358707e6
* Get all extant redirects to this Title
*
* @param int|Null $ns Single namespace to consider; NULL to consider all namespaces
- * @return Array of Title redirects to this title
+ * @return Title[] Array of Title redirects to this title
*/
public function getRedirectsHere( $ns = null ) {
$redirs = array();
/** @var LocalRepo */
protected $localRepo;
- /** @var array */
+ /** @var FileRepo[] */
protected $foreignRepos;
/** @var bool */
if ( $redir ) {
return $redir;
}
+
foreach ( $this->foreignRepos as $repo ) {
$redir = $repo->checkRedirect( $title );
if ( $redir ) {
* The following member variables are not lazy-initialised
*/
- /** @var FileRepo|bool */
+ /** @var FileRepo|LocalRepo|ForeignAPIRepo|bool */
public $repo;
/** @var Title|string|bool */
/**
* Returns the repository
*
- * @return FileRepo|bool
+ * @return FileRepo|LocalRepo|bool
*/
function getRepo() {
return $this->repo;