1
0
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:
Matthew Brown 2018-03-30 20:08:12 -04:00
parent 75e59f29ea
commit ca8f2626a2

View File

@ -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) {