Home
My Account
About us
Products
Support Services
Buy online
Downloads
Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
PHP Manual
Reflection
Examples
Extending
Reflection
ReflectionClass
ReflectionClassConstant
ReflectionConstant
ReflectionEnum
ReflectionEnumUnitCase
ReflectionEnumBackedCase
ReflectionZendExtension
ReflectionExtension
ReflectionFunction
ReflectionFunctionAbstract
ReflectionMethod
ReflectionNamedType
ReflectionObject
ReflectionParameter
ReflectionProperty
ReflectionType
ReflectionUnionType
ReflectionGenerator
ReflectionFiber
ReflectionIntersectionType
ReflectionReference
ReflectionAttribute
Reflector
ReflectionException
PropertyHookType
ReflectionType::__toString
ReflectionUnionType::getTypes
Reflection
Last updated: Mon, 26 Oct 2026
The ReflectionUnionType class
(PHP 8)
Introduction
Class synopsis
class
ReflectionUnionType
extends
ReflectionType
{
/* Methods */
public
function
getTypes
():
array
/* Inherited methods */
public
function
ReflectionType::allowsNull
():
bool
public
function
ReflectionType::__toString
():
string
}
Table of Contents
ReflectionUnionType::getTypes
— Returns the types included in the union type
ReflectionType::__toString
ReflectionUnionType::getTypes
Reflection
Last updated: Mon, 26 Oct 2026