Merge "Revert "ApiSandbox: Display params as JSON on request page""
[lhc/web/wiklou.git] / tests / phan / config.php
index 5259ec9..17c1fb8 100644 (file)
@@ -167,7 +167,7 @@ return [
         */
        'analyze_signature_compatibility' => true,
 
-       // Emit all issues. They are then supressed via
+       // Emit all issues. They are then suppressed via
        // suppress_issue_types, rather than a minimum
        // severity.
        "minimum_severity" => 0,
@@ -203,7 +203,7 @@ return [
         * with complicated cross-file globals that you have no
         * hope of fixing.
         */
-       'ignore_undeclared_variables_in_global_scope' => false,
+       'ignore_undeclared_variables_in_global_scope' => true,
 
        /**
         * Set to true in order to attempt to detect dead
@@ -310,14 +310,10 @@ return [
                // approximate error count: 3
                "PhanParamTooManyInternal",
                // approximate error count: 1
-               "PhanRedefineFunction",
-               // approximate error count: 1
                "PhanRedefineFunctionInternal",
                // approximate error count: 2
                "PhanTraitParentReference",
                // approximate error count: 4
-               "PhanTypeArraySuspicious",
-               // approximate error count: 4
                "PhanTypeComparisonFromArray",
                // approximate error count: 3
                "PhanTypeInvalidRightOperand",
@@ -325,15 +321,13 @@ return [
                "PhanTypeMismatchArgument",
                // approximate error count: 39
                "PhanTypeMismatchArgumentInternal",
-               // approximate error count: 4
-               "PhanTypeMismatchDefault",
                // approximate error count: 16
                "PhanTypeMismatchForeach",
                // approximate error count: 63
                "PhanTypeMismatchProperty",
                // approximate error count: 95
                "PhanTypeMismatchReturn",
-               // approximate error count: 16
+               // approximate error count: 11
                "PhanTypeMissingReturn",
                // approximate error count: 5
                "PhanTypeNonVarPassByRef",
@@ -343,10 +337,8 @@ return [
                "PhanUndeclaredMethod",
                // approximate error count: 1342
                "PhanUndeclaredProperty",
-               // approximate error count: 9
+               // approximate error count: 3
                "PhanUndeclaredStaticMethod",
-               // approximate error count: 79
-               "PhanUndeclaredVariable",
        ],
 
        /**