Suppress wrong phan errors

\BagOStuff::makeKey() and \BagOStuff::makeGlobalKey() can take
any number of arguments but phan gives out PhanParamTooMany
and this breaks master avoiding anything to be merged

Change-Id: I4b313606e03565182552d9c581feccabaa408022
This commit is contained in:
Amir Sarabadani 2019-07-22 14:43:28 +02:00 committed by jenkins-bot
parent e5097e6145
commit 0cfb5422dc
2 changed files with 2 additions and 0 deletions

View file

@ -23,6 +23,7 @@ class ApiScribuntoConsole extends ApiBase {
}
$cache = ObjectCache::getInstance( CACHE_ANYTHING );
// @phan-suppress-next-line PhanParamTooMany
$sessionKey = $cache->makeKey( 'scribunto-console', $this->getUser()->getId(), $sessionId );
$session = null;
$sessionIsNew = false;

View file

@ -210,6 +210,7 @@ class ScribuntoHooks {
}
$cacheVersion = '1';
// @phan-suppress-next-line PhanParamTooMany
$key = $cache->makeGlobalKey( __METHOD__, $cacheVersion, $threshold );
// This is a classic "read-update-write" critical section with no