diff --git a/src/Psalm/Internal/Type/TypeCombination.php b/src/Psalm/Internal/Type/TypeCombination.php index 5bcb88e9527..099a4f718f3 100644 --- a/src/Psalm/Internal/Type/TypeCombination.php +++ b/src/Psalm/Internal/Type/TypeCombination.php @@ -39,9 +39,6 @@ class TypeCombination /** @var array */ public $objectlike_entries = []; - /** @var array */ - public $objectlike_class_strings = []; - /** @var bool */ public $objectlike_sealed = true; diff --git a/src/Psalm/Internal/Type/TypeCombiner.php b/src/Psalm/Internal/Type/TypeCombiner.php index f85cfbf1359..689dae3c352 100644 --- a/src/Psalm/Internal/Type/TypeCombiner.php +++ b/src/Psalm/Internal/Type/TypeCombiner.php @@ -66,7 +66,6 @@ use function in_array; use function is_int; use function is_numeric; -use function is_string; use function strpos; use function strtolower; use function substr; @@ -706,12 +705,6 @@ private static function scrapeTypeProperties( ); } - if (is_string($candidate_property_name) - && isset($type->class_strings[$candidate_property_name]) - ) { - $combination->objectlike_class_strings[$candidate_property_name] = true; - } - if (!$type->previous_value_type) { unset($possibly_undefined_entries[$candidate_property_name]); }