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:
parent
249d61ec1b
commit
c450d95727
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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',
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user