Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Union operator on a new line causes parsing error #183

Open
internalsystemerror opened this issue Apr 5, 2023 · 0 comments
Open

Union operator on a new line causes parsing error #183

internalsystemerror opened this issue Apr 5, 2023 · 0 comments

Comments

@internalsystemerror
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant