phpstan / phpdoc-parser

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

Allow conditional type in callable return type #217

Closed rvanvelzen closed 1 year ago

rvanvelzen commented 1 year ago

Fix #151

rvanvelzen commented 1 year 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 1 year ago

Oh right, I didn't realize that.

ondrejmirtes commented 1 year ago

Thank you!