From a3214012a6cbe52a75431572e0a81411854285d7 Mon Sep 17 00:00:00 2001 From: Brown Date: Tue, 19 May 2020 16:15:41 -0400 Subject: [PATCH] Only convert userland functions --- .../Analyzer/Statements/Expression/Call/ArgumentAnalyzer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentAnalyzer.php index 638334789..3256788ab 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentAnalyzer.php @@ -582,6 +582,7 @@ class ArgumentAnalyzer if ($param_type->hasCallableType() && $param_type->isSingle() && $input_type->isSingleStringLiteral() + && !\Psalm\Internal\Codebase\CallMap::inCallMap($input_type->getSingleStringLiteral()->value) ) { foreach ($input_type->getAtomicTypes() as $key => $atomic_type) { $candidate_callable = TypeAnalyzer::getCallableFromAtomic(