/** * ast_node_type() is for places where an actual type * name appears. This returns that type name. Use node_type() * instead to figure out the type of a node * * @param Context $context * @param null|string|Node $node * * @see \Phan\Deprecated\AST::ast_node_type */ public static function fromSimpleNode(Context $context, $node) : UnionType { return AST::unionTypeFromSimpleNode($context, $node); }