Skip to content
Permalink
Browse files

Refine previous fix

  • Loading branch information...
muglug committed Aug 10, 2019
1 parent 1586cb2 commit 585fffaa1f07b6b9cad7c4dba342ace66debecdc
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/Psalm/Type/Reconciler.php
@@ -196,6 +196,7 @@ public static function reconcileKeyedTypes(
$has_isset = $has_isset
|| $new_type_part_part === 'isset'
|| $new_type_part_part === '=isset'
|| $new_type_part_part === 'array-key-exists';
$has_not_isset = $has_not_isset || $new_type_part_part === '!isset';
@@ -283,7 +284,7 @@ function (array $new_type_part_parts) {
$code_location,
$suppressed_issues
);
} elseif (!$has_negation) {
} elseif (!$has_negation && !$has_isset) {
$changed_var_ids[] = $key;
}

0 comments on commit 585fffa

Please sign in to comment.
You can’t perform that action at this time.