diff --git a/src/Psalm/Internal/Type/Comparator/AtomicTypeComparator.php b/src/Psalm/Internal/Type/Comparator/AtomicTypeComparator.php index 539d643d7..22231f616 100644 --- a/src/Psalm/Internal/Type/Comparator/AtomicTypeComparator.php +++ b/src/Psalm/Internal/Type/Comparator/AtomicTypeComparator.php @@ -326,8 +326,8 @@ class AtomicTypeComparator if ($container_type_part instanceof TNamedObject && $input_type_part instanceof TNamedObject - && $container_type_part->is_static - && !$input_type_part->is_static + && !$container_type_part->is_static + && $input_type_part->is_static ) { if ($atomic_comparison_result) { $atomic_comparison_result->type_coerced = true;