mirror of
https://github.com/danog/psalm.git
synced 2024-12-11 08:49:52 +01:00
add "!" to invert the meaning of the errors
This commit is contained in:
parent
d8f42d7281
commit
bac0217890
@ -832,7 +832,7 @@ class AssertionFinder
|
||||
if ($first_var_type->from_docblock) {
|
||||
if (IssueBuffer::accepts(
|
||||
new DocblockTypeContradiction(
|
||||
$first_var_type . ' does not contain ' . $expected_type,
|
||||
'Docblock type !' . $first_var_type . ' does not contain ' . $expected_type,
|
||||
new CodeLocation($source, $expr),
|
||||
$first_var_type . ' ' . $expected_type
|
||||
),
|
||||
@ -843,7 +843,7 @@ class AssertionFinder
|
||||
} else {
|
||||
if (IssueBuffer::accepts(
|
||||
new TypeDoesNotContainType(
|
||||
$first_var_type . ' does not contain ' . $expected_type,
|
||||
'!' . $first_var_type . ' does not contain ' . $expected_type,
|
||||
new CodeLocation($source, $expr),
|
||||
$first_var_type . ' ' . $expected_type
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user