diff options
author | Daimona Eaytoy <daimona.wiki@gmail.com> | 2019-10-11 16:31:51 +0200 |
---|---|---|
committer | Daimona Eaytoy <daimona.wiki@gmail.com> | 2019-10-12 10:35:22 +0000 |
commit | bd5b6f98ba62e87baaa3fc6886b88abbc4d51673 (patch) | |
tree | b0711d36ccb9fa3c1da5a4e8fcddfd37697267e0 /includes/specials/SpecialSearch.php | |
parent | 95dc119527642308d957e5ab2703a4b0f5fea80a (diff) | |
download | mediawikicore-bd5b6f98ba62e87baaa3fc6886b88abbc4d51673.tar.gz mediawikicore-bd5b6f98ba62e87baaa3fc6886b88abbc4d51673.zip |
Fix new phan errors, part 3
These are almost only doc changes, with two exceptions:
1-In LinkHolderArray, int-alike array keys are now cast to int, to be uniform with what we do in other code paths
2-In ExtensionRegistration, changed a line to throw an Exception
immediately, instead of an ExtensionDependencyError. This is because the
latter takes an array with msg and type, but we were passing it a plain
string (and in fact the code was bugged).
Bug: T231636
Change-Id: I8b0ef50d279c2a87490dde6a467a4e22c0710afd
Diffstat (limited to 'includes/specials/SpecialSearch.php')
-rw-r--r-- | includes/specials/SpecialSearch.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index 2ae4afcb2e62..f03629953f72 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -682,7 +682,8 @@ class SpecialSearch extends SpecialPage { } /** - * @return array + * @return array[] + * @phan-return array<string,array{message:string,tooltip:string,namespaces:int|string|(int|string)[],namespace-messages?:string[]}> */ protected function getSearchProfiles() { // Builds list of Search Types (profiles) |