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

Resolve default value expression #219

Open
3 tasks
jaapio opened this issue Oct 8, 2021 · 0 comments
Open
3 tasks

Resolve default value expression #219

jaapio opened this issue Oct 8, 2021 · 0 comments

Comments

@jaapio
Copy link
Member

jaapio commented Oct 8, 2021

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

  • const arguments should resove to class
  • enum arguments should resolve to enum
  • new initializer support in arguments.
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