mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Only convert userland functions
This commit is contained in:
parent
baeb86ca8f
commit
a3214012a6
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user