<?php

use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;

/**
 * @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 {}
}
