1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

bugfix: remove atomic type comparator regarding TEnumCase

Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
This commit is contained in:
Maximilian Bösing 2023-08-26 00:15:53 +02:00
parent 6c1899df13
commit cd3e294bfd
No known key found for this signature in database
GPG Key ID: 9A8988C93CEC81A3

View File

@ -631,12 +631,6 @@ class AtomicTypeComparator
}
}
if ($input_type_part instanceof TEnumCase
&& !$container_type_part instanceof TEnumCase
) {
return false;
}
if ($container_type_part instanceof TString || $container_type_part instanceof TScalar) {
if ($input_type_part instanceof TNamedObject) {
// check whether the object has a __toString method