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:
parent
ac5dd77955
commit
f21390d7ce
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user