mirror of
https://github.com/danog/psalm.git
synced 2025-01-07 13:42:11 +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)
|
&& !$this->classlike_storage_provider->has($fq_class_name_lc)
|
||||||
) {
|
) {
|
||||||
if (!isset($this->existing_classes_lc[$fq_class_name_lc])) {
|
return $this->existing_classes_lc[$fq_class_name_lc] = false;
|
||||||
$this->existing_classes_lc[$fq_class_name_lc] = false;
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this->existing_classes_lc[$fq_class_name_lc];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@ -406,13 +400,7 @@ class ClassLikes
|
|||||||
)
|
)
|
||||||
&& !$this->classlike_storage_provider->has($fq_class_name_lc)
|
&& !$this->classlike_storage_provider->has($fq_class_name_lc)
|
||||||
) {
|
) {
|
||||||
if (!isset($this->existing_interfaces_lc[$fq_class_name_lc])) {
|
return $this->existing_interfaces_lc[$fq_class_name_lc] = false;
|
||||||
$this->existing_interfaces_lc[$fq_class_name_lc] = false;
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this->existing_interfaces_lc[$fq_class_name_lc];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@ -473,13 +461,7 @@ class ClassLikes
|
|||||||
)
|
)
|
||||||
&& !$this->classlike_storage_provider->has($fq_class_name_lc)
|
&& !$this->classlike_storage_provider->has($fq_class_name_lc)
|
||||||
) {
|
) {
|
||||||
if (!isset($this->existing_enums_lc[$fq_class_name_lc])) {
|
return $this->existing_enums_lc[$fq_class_name_lc] = false;
|
||||||
$this->existing_enums_lc[$fq_class_name_lc] = false;
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this->existing_enums_lc[$fq_class_name_lc];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user