mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Prevent dupe records
This commit is contained in:
parent
a6c7336c69
commit
d462a94661
@ -816,8 +816,6 @@ class Reconciler
|
||||
): void {
|
||||
$not = $assertion[0] === '!';
|
||||
|
||||
$safe_assertion = $assertion;
|
||||
|
||||
if ($not) {
|
||||
$assertion = substr($assertion, 1);
|
||||
}
|
||||
@ -841,7 +839,7 @@ class Reconciler
|
||||
. ' for ' . $key
|
||||
. ' is ' . ($not ? 'never ' : 'always ') . $assertion,
|
||||
$code_location,
|
||||
$old_var_type_string . ' ' . $safe_assertion
|
||||
$old_var_type_string . ' ' . $assertion
|
||||
),
|
||||
$suppressed_issues
|
||||
)) {
|
||||
@ -854,7 +852,7 @@ class Reconciler
|
||||
. ' for ' . $key
|
||||
. ' is ' . ($not ? 'never ' : 'always ') . $assertion,
|
||||
$code_location,
|
||||
$old_var_type_string . ' ' . $safe_assertion
|
||||
$old_var_type_string . ' ' . $assertion
|
||||
),
|
||||
$suppressed_issues
|
||||
)) {
|
||||
@ -869,7 +867,7 @@ class Reconciler
|
||||
. ' for ' . $key
|
||||
. ' is ' . ($not ? 'always ' : 'never ') . $assertion,
|
||||
$code_location,
|
||||
$old_var_type_string . ' ' . $safe_assertion
|
||||
$old_var_type_string . ' ' . $assertion
|
||||
),
|
||||
$suppressed_issues
|
||||
)) {
|
||||
@ -882,7 +880,7 @@ class Reconciler
|
||||
. ' for ' . $key
|
||||
. ' is never ' . $assertion,
|
||||
$code_location,
|
||||
$old_var_type_string . ' ' . $safe_assertion
|
||||
$old_var_type_string . ' ' . $assertion
|
||||
);
|
||||
} else {
|
||||
$issue = new TypeDoesNotContainType(
|
||||
@ -890,7 +888,7 @@ class Reconciler
|
||||
. ' for ' . $key
|
||||
. ' is ' . ($not ? 'always ' : 'never ') . $assertion,
|
||||
$code_location,
|
||||
$old_var_type_string . ' ' . $safe_assertion
|
||||
$old_var_type_string . ' ' . $assertion
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user