Skip to content

Conversation

@eric-therond
Copy link
Contributor

@eric-therond eric-therond commented May 26, 2021

A PR to try to handle union type.

Today when parsing this code:

function foo(array|string|null $string) {

}

an exception is raised:

LogicException: Unknown type node: UnionType in /php-cfg/lib/PHPCfg/Parser.php:195

@ircmaxell
Copy link
Owner

LGTM.

@ircmaxell ircmaxell merged commit a9cecd2 into ircmaxell:master May 26, 2021
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

Successfully merging this pull request may close these issues.

2 participants