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

Feature/method params #304

Closed
wants to merge 2 commits into from
Closed

Feature/method params #304

wants to merge 2 commits into from

Conversation

jaapio
Copy link
Member

@jaapio jaapio commented Sep 27, 2021

This pr will add variadict and reference support to the @method arguments.
Since we need to expose more information now the original getArguments method is deprecated, and will be replaced by getParameters which will now return a Param that supports more complex notations.

There should be no BC breaks in here.

The original code didn't allow a whitespace between `&` and `$` or `...`
this patch makes that possible.
The original code was limited by the simple notation of `@method` arguments
the arguments did not support variadic and by reference notations. Both were
just parsed into the argument name.

The new getParameters will expose an Param object which includes all information
like we have in native php methods.
Copy link
Contributor

@williamdes williamdes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks interesting !

@jaapio
Copy link
Member Author

jaapio commented Oct 28, 2022

Replaced by #343

@jaapio jaapio closed this Oct 28, 2022
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