phpDocumentor / Reflection

Reflection library to do Static Analysis for PHP Projects
MIT License
117 stars 51 forks source link

Resolve default value expression #219

Open jaapio opened 3 years ago

jaapio commented 3 years ago

php supports default values for method arguments, for a long time just scalar values were supported or const. That's why we are just using string values to represent the default values. But with introducing more complex expressions it makes sense to convert the method arguments into a object structure.

https://stitcher.io/blog/new-in-php-81#new-in-initializers-rfc