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

Support completing array arguments multiple times #66

Merged
merged 1 commit into from Feb 24, 2016
Merged

Support completing array arguments multiple times #66

merged 1 commit into from Feb 24, 2016

Conversation

CarsonF
Copy link
Contributor

@CarsonF CarsonF commented Feb 24, 2016

These arguments can have multiple values. They have to be the last argument (Symfony enforces this). It is the same concept as variadic functions.

If the argument at the current word index doesn't exist it could be a second value for an array input argument. So we can just check and see if the last argument is an array and use it.

stecman added a commit that referenced this pull request Feb 24, 2016
Support completing array arguments multiple times
@stecman stecman merged commit 5461d43 into stecman:master Feb 24, 2016
@stecman
Copy link
Owner

stecman commented Feb 24, 2016

Sweet, nice work 👌

@CarsonF CarsonF deleted the feature/array-arg-multiple branch February 24, 2016 05:09
@aik099
Copy link
Contributor

aik099 commented Feb 24, 2016

Nice catch @CarsonF , 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

Successfully merging this pull request may close these issues.

None yet

3 participants