1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-04 02:27:59 +01:00

Fix erroneous intersection

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
This commit is contained in:
Matthew Brown 2022-01-04 16:04:36 +00:00
parent f40e6df6fb
commit 2c6d4f8687

View File

@ -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(