mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +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:
parent
6c1899df13
commit
cd3e294bfd
@ -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 ($container_type_part instanceof TString || $container_type_part instanceof TScalar) {
|
||||||
if ($input_type_part instanceof TNamedObject) {
|
if ($input_type_part instanceof TNamedObject) {
|
||||||
// check whether the object has a __toString method
|
// check whether the object has a __toString method
|
||||||
|
Loading…
Reference in New Issue
Block a user