phpstan / phpdoc-parser

Next-gen phpDoc parser with support for intersection types and generics
MIT License
1.31k stars 62 forks source link

Allow conditional type in callable return type #217

Closed rvanvelzen closed 11 months ago

rvanvelzen commented 11 months ago

Fix #151

rvanvelzen commented 11 months ago

Nullable types were already accepted, and do not need to be parenthesized. The only change is that conditional types are now accepted.

ondrejmirtes commented 11 months ago

Oh right, I didn't realize that.

ondrejmirtes commented 11 months ago

Thank you!