1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-29 20:28:59 +01:00

Casing checker: Ignore call / call static (#3939)

This commit is contained in:
jarstelfox 2020-08-05 12:48:41 -07:00 committed by GitHub
parent c5f71b669c
commit 20ab8ee736
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,6 +53,10 @@ class FunctionCasingChecker implements AfterFunctionCallAnalysisInterface, After
return;
}
if ($function_storage->cased_name === '__callStatic') {
return;
}
if ($function_storage->cased_name !== (string)$expr->name) {
if (\Psalm\IssueBuffer::accepts(
new IncorrectFunctionCasing(