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

Merge branch 'fix_intersection_scanning' into strict_types

This commit is contained in:
Daniil Gentili 2023-07-25 11:12:03 +02:00
commit e8b8aa38bc
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -368,13 +368,7 @@ class ClassLikes
)
&& !$this->classlike_storage_provider->has($fq_class_name_lc)
) {
if (!isset($this->existing_classes_lc[$fq_class_name_lc])) {
$this->existing_classes_lc[$fq_class_name_lc] = false;
return false;
}
return $this->existing_classes_lc[$fq_class_name_lc];
return $this->existing_classes_lc[$fq_class_name_lc] = false;
}
return false;
@ -408,13 +402,7 @@ class ClassLikes
)
&& !$this->classlike_storage_provider->has($fq_class_name_lc)
) {
if (!isset($this->existing_interfaces_lc[$fq_class_name_lc])) {
$this->existing_interfaces_lc[$fq_class_name_lc] = false;
return false;
}
return $this->existing_interfaces_lc[$fq_class_name_lc];
return $this->existing_interfaces_lc[$fq_class_name_lc] = false;
}
return false;
@ -475,13 +463,7 @@ class ClassLikes
)
&& !$this->classlike_storage_provider->has($fq_class_name_lc)
) {
if (!isset($this->existing_enums_lc[$fq_class_name_lc])) {
$this->existing_enums_lc[$fq_class_name_lc] = false;
return false;
}
return $this->existing_enums_lc[$fq_class_name_lc];
return $this->existing_enums_lc[$fq_class_name_lc] = false;
}
return false;