<?php
//modified by Mewburn Projects Pty Ltd
use __IDE\LanguageLevelTypeAware;
use __IDE\Pure;

/**
 * @since 8.0
 */
class ReflectionUnionType extends ReflectionType
{
    /**
     * Get list of types of union type
     *
     * @return ReflectionNamedType[]|ReflectionIntersectionType[]
     */
    #[Pure]
    #[LanguageLevelTypeAware(
        [
            '8.2' => 'ReflectionNamedType[]|ReflectionIntersectionType[]'
        ],
        default: 'ReflectionNamedType[]'
    )]
    public function getTypes(): array {}
}
