Suppress PhanParamSignatureRealMismatchParamType on classes affected by new RL namespace

There is an alias, so there shouldn't be a problem in production. Phan
raises a spurious warning when the target version is PHP 7.2.

Bug: T308443
Change-Id: I75f1a1bd113a18c40236bd622b0eb76743432ceb
This commit is contained in:
Tim Starling
2022-05-20 18:16:31 +10:00
committed by jenkins-bot
parent 28540535b3
commit 3524e733b9
2 changed files with 4 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ class ResourceLoaderULSJsonMessageModule extends ResourceLoaderModule {
/** /**
* Part of the ResourceLoader module interface. * Part of the ResourceLoader module interface.
* Declares the core ext.uls.i18n module as a dependency. * Declares the core ext.uls.i18n module as a dependency.
* @suppress PhanParamSignatureRealMismatchParamType, UnusedSuppression -- T308443
* @param ResourceLoaderContext|null $context * @param ResourceLoaderContext|null $context
* @return string[] Module names. * @return string[] Module names.
*/ */
@@ -36,6 +37,7 @@ class ResourceLoaderULSJsonMessageModule extends ResourceLoaderModule {
} }
/** /**
* @suppress PhanParamSignatureRealMismatchParamType, UnusedSuppression -- T308443
* @param ResourceLoaderContext $context * @param ResourceLoaderContext $context
* @return array * @return array
*/ */
@@ -56,6 +58,7 @@ class ResourceLoaderULSJsonMessageModule extends ResourceLoaderModule {
/** /**
* Get the message strings for the current UI language. Uses * Get the message strings for the current UI language. Uses
* mw.uls.loadLocalization to register them on the frontend. * mw.uls.loadLocalization to register them on the frontend.
* @suppress PhanParamSignatureRealMismatchParamType, UnusedSuppression -- T308443
* @param ResourceLoaderContext $context * @param ResourceLoaderContext $context
* @return string JavaScript code. * @return string JavaScript code.
*/ */

View File

@@ -48,6 +48,7 @@ class ResourceLoaderULSModule extends ResourceLoaderModule {
} }
/** /**
* @suppress PhanParamSignatureRealMismatchParamType, UnusedSuppression -- T308443
* @param ResourceLoaderContext $context * @param ResourceLoaderContext $context
* @return string JavaScript code * @return string JavaScript code
*/ */