Change-Id: Ib977acb9abfcc6e07019013c6f9fc20ece16245d
if ( is_object( $text ) ) {
throw new InvalidArgumentException( '$text must be a string.' );
} elseif ( !is_string( $text ) ) {
if ( is_object( $text ) ) {
throw new InvalidArgumentException( '$text must be a string.' );
} elseif ( !is_string( $text ) ) {
- wfWarn( __METHOD__ . ': $text must be a string. This will throw an InvalidArgumentException in future.' );
+ wfWarn( __METHOD__ . ': $text must be a string. This will throw an InvalidArgumentException in future.', 2 );
}
$cache = self::getTitleCache();
}
$cache = self::getTitleCache();