1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00

fix inconsistent function naming

This commit is contained in:
kkmuffme 2022-09-08 14:33:20 +02:00
parent 249d61ec1b
commit c450d95727
3 changed files with 4 additions and 4 deletions

View File

@ -793,9 +793,9 @@ class Codebase
return $this->classlikes->interfaceHasCorrectCasing($fq_interface_name);
}
public function traitHasCorrectCase(string $fq_trait_name): bool
public function traitHasCorrectCasing(string $fq_trait_name): bool
{
return $this->classlikes->traitHasCorrectCase($fq_trait_name);
return $this->classlikes->traitHasCorrectCasing($fq_trait_name);
}
/**

View File

@ -1370,7 +1370,7 @@ class ClassAnalyzer extends ClassLikeAnalyzer
return false;
}
if (!$codebase->traitHasCorrectCase($fq_trait_name)) {
if (!$codebase->traitHasCorrectCasing($fq_trait_name)) {
if (IssueBuffer::accepts(
new UndefinedTrait(
'Trait ' . $fq_trait_name . ' has wrong casing',

View File

@ -780,7 +780,7 @@ class ClassLikes
return isset($this->existing_enums[$fq_enum_name]);
}
public function traitHasCorrectCase(string $fq_trait_name): bool
public function traitHasCorrectCasing(string $fq_trait_name): bool
{
if (isset($this->existing_classlike_aliases[$fq_trait_name])) {
return true;