Skip to content

Nested union types inside generics are split incorrectly #268

Description

@sirreal

Given:

@param list<string|MessagePart|array> $prompt

the parser returns three types:

\list<string
\MessagePart
\array>

Expected: list<string|MessagePart|array> remains one type, with aliases resolved inside the generic if applicable.

This is part of an issue with wp_ai_client_prompt() documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions