diff --git a/dev/tools/phan/config.php b/dev/tools/phan/config.php index 9da8c4641a4..d4057d6f060 100644 --- a/dev/tools/phan/config.php +++ b/dev/tools/phan/config.php @@ -442,6 +442,7 @@ return [ 'PhanPluginRedundantAssignmentInGlobalScope', // Not essential, a lot of false warning 'PhanPluginDuplicateCatchStatementBody', // Requires PHP7.1 - 50+ occurrences + 'PhanUndeclaredGlobalVariable', // Too many false positives on .tpl.php files 'PhanPluginUnknownObjectMethodCall', // False positive for some class ], // You can put relative paths to internal stubs in this config option. diff --git a/dev/tools/phan/config_extended.php b/dev/tools/phan/config_extended.php index 4d828556aea..c7759f6cc65 100644 --- a/dev/tools/phan/config_extended.php +++ b/dev/tools/phan/config_extended.php @@ -86,6 +86,7 @@ $config['suppress_issue_types'] = [ 'PhanPluginRedundantAssignmentInGlobalScope', // Not essential, a lot of false warning 'PhanPluginDuplicateCatchStatementBody', // Requires PHP7.1 - 50+ occurrences + 'PhanUndeclaredGlobalVariable', // Too many false positives on .tpl.php files 'PhanPluginUnknownObjectMethodCall', // False positive for some class ];