# The ReflectionUnionType class

(PHP 8)

## Introduction

## Class synopsis

class ReflectionUnionType extends ReflectionType {
/* Methods */
public getTypes(): array
/* Inherited methods */
public ReflectionType::allowsNull(): bool
public ReflectionType::__toString(): string
}

## Table of Contents

- ReflectionUnionType::getTypes — Returns the types included in the union type

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open