1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Only convert userland functions

This commit is contained in:
Brown 2020-05-19 16:15:41 -04:00
parent baeb86ca8f
commit a3214012a6

View File

@ -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(