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

variadic params for method #17

Open
zoryamba-work opened this issue Apr 21, 2019 · 2 comments
Open

variadic params for method #17

zoryamba-work opened this issue Apr 21, 2019 · 2 comments

Comments

@zoryamba-work
Copy link

If we have a lot of parameters and want to validate them via some framework validators, it could be useful to let users to pass params to method as a variadic param. e.g.

public function methodName(...$params)
{
    // some validations here
}
@zoryamba-work
Copy link
Author

It could be checked with ReflectionParameter::isVariadic method.

I could implement it and create a PR. Please, let me know, if this repo is still alive

@johnstevenson
Copy link
Owner

Sure it is still alive, but hasn't had much love for a bit. A PR would be great - thanks

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

2 participants