public function visitCoalesce(Node $node) : UnionType { $union_type = new UnionType(); $left_type = self::unionTypeFromNode($this->code_base, $this->context, $node->children['left']); $union_type->addUnionType($left_type); $right_type = self::unionTypeFromNode($this->code_base, $this->context, $node->children['right']); $union_type->addUnionType($right_type); return $union_type; }