- public static function newInstance( ORMTable $sitesTable = null, BagOStuff $cache = null ) {
- if ( $cache === null ) {
- $cache = wfGetMainCache();
+ public static function newInstance( $sitesTable = null, BagOStuff $cache = null ) {
+ if ( $sitesTable !== null ) {
+ throw new InvalidArgumentException(
+ __METHOD__ . ': $sitesTable parameter is unused and must be null'
+ );