X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Fsite%2FSiteSQLStore.php;h=e61179b02e1e3f8bed88747a1d134619a2e85cbf;hb=866f16487349189de35db6cd2780e74cd6996999;hp=e3230fff84a7a589e1f5396c95555c06fdd07c5f;hpb=38514beff4a08f6faf9fa54abf6d813bfec4737a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/site/SiteSQLStore.php b/includes/site/SiteSQLStore.php index e3230fff84..e61179b02e 100644 --- a/includes/site/SiteSQLStore.php +++ b/includes/site/SiteSQLStore.php @@ -34,12 +34,18 @@ class SiteSQLStore extends CachingSiteStore { * @since 1.21 * @deprecated 1.25 Construct a SiteStore instance directly instead. * - * @param ORMTable|null $sitesTable + * @param null $sitesTable Unused * @param BagOStuff|null $cache * * @return SiteStore */ - public static function newInstance( ORMTable $sitesTable = null, BagOStuff $cache = null ) { + public static function newInstance( $sitesTable = null, BagOStuff $cache = null ) { + if ( $sitesTable !== null ) { + throw new InvalidArgumentException( + __METHOD__ . ': $sitesTable parameter is unused and must be null' + ); + } + if ( $cache === null ) { $cache = wfGetCache( wfIsHHVM() ? CACHE_ACCEL : CACHE_ANYTHING ); }