mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Remove extraneous function reflection
This commit is contained in:
parent
75e59f29ea
commit
ca8f2626a2
@ -412,19 +412,6 @@ class DependencyFinderVisitor extends PhpParser\NodeVisitorAbstract implements P
|
||||
$function_like_storage->variadic = true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
$reflection_function = new \ReflectionFunction($function_id);
|
||||
|
||||
if ($reflection_function->isUserDefined()) {
|
||||
/**
|
||||
* @psalm-suppress PossiblyFalseArgument
|
||||
*/
|
||||
$this->codebase->scanner->queueFileForScanning($reflection_function->getFileName());
|
||||
}
|
||||
} catch (\ReflectionException $e) {
|
||||
// do nothing
|
||||
}
|
||||
}
|
||||
} elseif ($node instanceof PhpParser\Node\Stmt\TraitUse) {
|
||||
if (!$this->classlike_storages) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user