Creates a closure signature with the supplied parameters.
private function getClosureNodeSignature(Node\Expr\Closure $node) { $scopedVariableNames = []; foreach ($node->uses as $use) { $scopedVariableNames[] = $use->var; } return FunctionSignature::closure($node->byRef, $this->getParameterExpressions($node->params), $scopedVariableNames); }