Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Union operator on a new line causes parsing error #183

Closed
@internalsystemerror

Description

Original issue: phpstan/phpstan#9019

When we have a type defined such as

/**
 * @phpstan-type FactoriesConfigurationType = array<
 * string,
 * (class-string<Factory\FactoryInterface>|Factory\FactoryInterface)
 * |callable(ContainerInterface,?string,?array<mixed>|null):object
 * >
 */

We get an error Unexpected token "|", expected '>'. According to the original issue the problem is caused by this package.

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

        AltStyle によって変換されたページ (->オリジナル) /