Skip to content

Prevent an empty choice list being passed in debug:container #12180

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

Closed

Conversation

weaverryan
Copy link
Member

Hi guys!

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets --
License MIT
Doc PR n/a

Currently, there is a "bug" where if you pass an empty array to ChoiceList, then you get this following warning from QuestionHelper::doAsk():

Warning: max(): Array must contain at least one element

That should probably be fixed too, but it would go on an earlier version, so I didn't want to mix fixes for different branches.

Thanks!

This currently causes a max() warning in QuestionHelper::doAsk()
@fabpot
Copy link
Member

fabpot commented Oct 8, 2014

👍

@fabpot
Copy link
Member

fabpot commented Oct 8, 2014

Thank you @weaverryan.

@fabpot fabpot closed this in 4430f75 Oct 8, 2014
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