diff --git a/dev/tools/phan/config.php b/dev/tools/phan/config.php index 343c3b18681..9a41901ee1a 100644 --- a/dev/tools/phan/config.php +++ b/dev/tools/phan/config.php @@ -451,6 +451,7 @@ return [ 'PhanCompatibleNegativeStringOffset', // return false positive 'PhanPluginConstantVariableBool', // a lot of false positive, in most cases, we want to keep the code as it is + 'PhanPluginConstantVariableNull', // a lot of false positive, in most cases, we want to keep the code as it is // 'PhanPluginUnknownArrayPropertyType', // Helps find missing array keys or mismatches, remaining occurrences are likely unused properties 'PhanTypeArraySuspiciousNullable', // About 440 occurrences // 'PhanTypeInvalidDimOffset', // Helps identify missing array indexes in types or reference to unset indexes diff --git a/dev/tools/phan/config_extended.php b/dev/tools/phan/config_extended.php index 878cf0fc7d3..c9a4168d675 100644 --- a/dev/tools/phan/config_extended.php +++ b/dev/tools/phan/config_extended.php @@ -68,6 +68,7 @@ $config['suppress_issue_types'] = [ 'PhanCompatibleNegativeStringOffset', // return false positive 'PhanPluginConstantVariableBool', // a lot of false positive, in most cases, we want to keep the code as it is + 'PhanPluginConstantVariableNull', // a lot of false positive, in most cases, we want to keep the code as it is // 'PhanPluginUnknownArrayPropertyType', // Helps find missing array keys or mismatches, remaining occurrences are likely unused properties 'PhanTypeArraySuspiciousNullable', // About 400 cases // 'PhanTypeInvalidDimOffset', // Helps identify missing array indexes in types or reference to unset indexes