From 20ab8ee7366074b066c58ec06647926c820b5398 Mon Sep 17 00:00:00 2001 From: jarstelfox Date: Wed, 5 Aug 2020 12:48:41 -0700 Subject: [PATCH] Casing checker: Ignore call / call static (#3939) --- examples/plugins/FunctionCasingChecker.php | 4 ++++ 1 file changed, 4 insertions(+) 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(