diff --git a/examples/plugins/FunctionCasingChecker.php b/examples/plugins/FunctionCasingChecker.php index 997277f86..64c0db9da 100644 --- a/examples/plugins/FunctionCasingChecker.php +++ b/examples/plugins/FunctionCasingChecker.php @@ -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(