From 2c6d4f86876818d036b54e09a7f4c8e5569acdb6 Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Tue, 4 Jan 2022 16:04:36 +0000 Subject: [PATCH] Fix erroneous intersection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found during a line-for-line port. We’re using this value in two different places, and it only makes sense to use it in one --- src/Psalm/Internal/Type/AssertionReconciler.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Psalm/Internal/Type/AssertionReconciler.php b/src/Psalm/Internal/Type/AssertionReconciler.php index 9f0cbe6b3..466285519 100644 --- a/src/Psalm/Internal/Type/AssertionReconciler.php +++ b/src/Psalm/Internal/Type/AssertionReconciler.php @@ -386,7 +386,6 @@ class AssertionReconciler extends Reconciler if ($existing_var_type_part instanceof TNamedObject || $existing_var_type_part instanceof TTemplateParam ) { - $new_type_part->addIntersectionType($existing_var_type_part); $acceptable_atomic_types[] = clone $existing_var_type_part; } else { if (AtomicTypeComparator::isContainedBy(