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

Remove extremely strange logic

This commit is contained in:
Daniil Gentili 2023-07-25 11:11:47 +02:00
parent ac5dd77955
commit f21390d7ce
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -366,13 +366,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;
@ -406,13 +400,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;
@ -473,13 +461,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;