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

other atomics

This commit is contained in:
kkmuffme 2023-12-12 13:54:35 +01:00
parent 0fd789cdcc
commit 679a492609
6 changed files with 8 additions and 8 deletions

View File

@ -216,7 +216,7 @@ final class TClassStringMap extends Atomic
return false;
}
if (!$this->value_param->equals($other_type->value_param, $ensure_source_equality)) {
if (!$this->value_param->equals($other_type->value_param, $ensure_source_equality, false)) {
return false;
}

View File

@ -111,7 +111,7 @@ final class TGenericObject extends TNamedObject
}
foreach ($this->type_params as $i => $type_param) {
if (!$type_param->equals($other_type->type_params[$i], $ensure_source_equality)) {
if (!$type_param->equals($other_type->type_params[$i], $ensure_source_equality, false)) {
return false;
}
}

View File

@ -115,7 +115,7 @@ final class TIterable extends Atomic
}
foreach ($this->type_params as $i => $type_param) {
if (!$type_param->equals($other_type->type_params[$i], $ensure_source_equality)) {
if (!$type_param->equals($other_type->type_params[$i], $ensure_source_equality, false)) {
return false;
}
}

View File

@ -658,11 +658,11 @@ class TKeyedArray extends Atomic
}
if ($this->fallback_params !== null && $other_type->fallback_params !== null) {
if (!$this->fallback_params[0]->equals($other_type->fallback_params[0])) {
if (!$this->fallback_params[0]->equals($other_type->fallback_params[0], false, false)) {
return false;
}
if (!$this->fallback_params[1]->equals($other_type->fallback_params[1])) {
if (!$this->fallback_params[1]->equals($other_type->fallback_params[1], false, false)) {
return false;
}
}
@ -672,7 +672,7 @@ class TKeyedArray extends Atomic
return false;
}
if (!$property_type->equals($other_type->properties[$property_name], $ensure_source_equality)) {
if (!$property_type->equals($other_type->properties[$property_name], $ensure_source_equality, false)) {
return false;
}
}

View File

@ -205,7 +205,7 @@ class TList extends Atomic
return false;
}
if (!$this->type_param->equals($other_type->type_param, $ensure_source_equality)) {
if (!$this->type_param->equals($other_type->type_param, $ensure_source_equality, false)) {
return false;
}

View File

@ -207,7 +207,7 @@ final class TObjectWithProperties extends TObject
return false;
}
if (!$property_type->equals($other_type->properties[$property_name], $ensure_source_equality)) {
if (!$property_type->equals($other_type->properties[$property_name], $ensure_source_equality, false)) {
return false;
}
}