1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Allow MixedArrayTypeCoercion to be properly suppressed by default

This commit is contained in:
Brown 2019-04-29 12:19:51 -04:00
parent f760ab6707
commit b9bece4cbc
2 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,7 @@ class Config
'MixedArrayAccess', 'MixedArrayAccess',
'MixedArrayAssignment', 'MixedArrayAssignment',
'MixedArrayOffset', 'MixedArrayOffset',
'MixedArrayTypeCoercion',
'MixedAssignment', 'MixedAssignment',
'MixedFunctionCall', 'MixedFunctionCall',
'MixedInferredReturnType', 'MixedInferredReturnType',

View File

@ -168,6 +168,7 @@ class IssueBuffer
if ($issue_type === 'MixedArgumentTypeCoercion' if ($issue_type === 'MixedArgumentTypeCoercion'
|| $issue_type === 'MixedPropertyTypeCoercion' || $issue_type === 'MixedPropertyTypeCoercion'
|| $issue_type === 'MixedReturnTypeCoercion' || $issue_type === 'MixedReturnTypeCoercion'
|| $issue_type === 'MixedArrayTypeCoercion'
) { ) {
return 'MixedTypeCoercion'; return 'MixedTypeCoercion';
} }