public static function fromClosureInContext(Context $context) : FullyQualifiedFunctionName { $name = 'closure_' . substr(md5(implode('|', [$context->getFile(), $context->getLineNumberStart()])), 0, 12); return static::fromStringInContext($name, $context); }
/** * @param Node $node * A node to parse * * @return Context * A new or an unchanged context resulting from * parsing the node */ public function visitClosure(Node $node) : Context { $this->analyzeNoOp($node, "no-op closure"); return $this->context->withClosureFQSEN(FullyQualifiedFunctionName::fromClosureInContext($this->context)); }