X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=blobdiff_plain;f=.phan%2Fconfig.php;h=5813b294682c1d8be6fb3ff44c2e06842bf7b38f;hb=7f7efbe026b01be36019c26571224a6e8a178677;hp=8746ada38425ce885c47a2f3a19f8b196eaffc0d;hpb=9c36c584ffe4c4650083bd158b13ce2efde34268;p=lhc%2Fweb%2Fwiklou.git diff --git a/.phan/config.php b/.phan/config.php index 8746ada384..5813b29468 100644 --- a/.phan/config.php +++ b/.phan/config.php @@ -82,18 +82,12 @@ $cfg['suppress_issue_types'] = array_merge( $cfg['suppress_issue_types'], [ "PhanCommentParamOnEmptyParamList", // approximate error count: 29 "PhanCommentParamWithoutRealParam", - // approximate error count: 2 - "PhanCompatibleNegativeStringOffset", // approximate error count: 21 "PhanParamReqAfterOpt", // approximate error count: 26 "PhanParamSignatureMismatch", - // approximate error count: 4 - "PhanParamSignatureMismatchInternal", // approximate error count: 127 "PhanParamTooMany", - // approximate error count: 2 - "PhanTraitParentReference", // approximate error count: 30 "PhanTypeArraySuspicious", // approximate error count: 27 @@ -102,16 +96,10 @@ $cfg['suppress_issue_types'] = array_merge( $cfg['suppress_issue_types'], [ "PhanTypeComparisonFromArray", // approximate error count: 63 "PhanTypeInvalidDimOffset", - // approximate error count: 7 - "PhanTypeInvalidLeftOperandOfIntegerOp", - // approximate error count: 2 - "PhanTypeInvalidRightOperandOfIntegerOp", // approximate error count: 154 "PhanTypeMismatchArgument", // approximate error count: 27 "PhanTypeMismatchArgumentInternal", - // approximate error count: 2 - "PhanTypeMismatchDimEmpty", // approximate error count: 27 "PhanTypeMismatchDimFetch", // approximate error count: 10 @@ -122,25 +110,21 @@ $cfg['suppress_issue_types'] = array_merge( $cfg['suppress_issue_types'], [ "PhanTypeMismatchReturn", // approximate error count: 12 "PhanTypeObjectUnsetDeclaredProperty", - // approximate error count: 9 - "PhanTypeSuspiciousNonTraversableForeach", - // approximate error count: 3 - "PhanTypeSuspiciousStringExpression", // approximate error count: 22 "PhanUndeclaredConstant", - // approximate error count: 3 - "PhanUndeclaredInvokeInCallable", // approximate error count: 237 "PhanUndeclaredMethod", // approximate error count: 846 "PhanUndeclaredProperty", - // approximate error count: 2 - "PhanUndeclaredVariableAssignOp", // approximate error count: 55 "PhanUndeclaredVariableDim", ] ); $cfg['ignore_undeclared_variables_in_global_scope'] = true; -$cfg['globals_type_map']['IP'] = 'string'; +$cfg['globals_type_map'] = array_merge( $cfg['globals_type_map'], [ + 'IP' => 'string', + 'wgGalleryOptions' => 'array', + 'wgDummyLanguageCodes' => 'string[]', +] ); return $cfg;