mirror of
https://github.com/danog/psalm.git
synced 2024-12-02 09:37:59 +01:00
other atomics
This commit is contained in:
parent
0fd789cdcc
commit
679a492609
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user