It only depends upon functions that are all in the LinkTarget interface.
Change-Id: I95e598ea6014ced8f1b947c283dd0b542756b8e2
/**
* Callback for usort() to do title sorts by (namespace, title)
*
- * @param Title $a
- * @param Title $b
+ * @param LinkTarget $a
+ * @param LinkTarget $b
*
* @return int Result of string comparison, or namespace comparison
*/
- public static function compare( $a, $b ) {
+ public static function compare( LinkTarget $a, LinkTarget $b ) {
if ( $a->getNamespace() == $b->getNamespace() ) {
return strcmp( $a->getText(), $b->getText() );
} else {