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:
parent
f760ab6707
commit
b9bece4cbc
@ -37,6 +37,7 @@ class Config
|
|||||||
'MixedArrayAccess',
|
'MixedArrayAccess',
|
||||||
'MixedArrayAssignment',
|
'MixedArrayAssignment',
|
||||||
'MixedArrayOffset',
|
'MixedArrayOffset',
|
||||||
|
'MixedArrayTypeCoercion',
|
||||||
'MixedAssignment',
|
'MixedAssignment',
|
||||||
'MixedFunctionCall',
|
'MixedFunctionCall',
|
||||||
'MixedInferredReturnType',
|
'MixedInferredReturnType',
|
||||||
|
@ -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';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user