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

[5.4] Make Arr::random($array, 1) return an array of one item #19826

Merged
merged 5 commits into from
Jun 29, 2017
Merged

[5.4] Make Arr::random($array, 1) return an array of one item #19826

merged 5 commits into from
Jun 29, 2017

Conversation

vlakoff
Copy link
Contributor

@vlakoff vlakoff commented Jun 29, 2017

Follow-up to #19818.

A bit of proofreading would be welcome. For example I nearly forgot adding a count(func_get_args()) in the array_random() helper, which was necessary before I make the optional parameter no more "magical".

@vlakoff
Copy link
Contributor Author

vlakoff commented Jun 29, 2017

ping @calebporzio, @sebastiandedeyne

Makes it less magical that it behaves differently when the parameter is omitted.
@taylorotwell taylorotwell merged commit 79e6c8c into laravel:5.4 Jun 29, 2017
@vlakoff vlakoff deleted the array_random_2 branch June 29, 2017 17:12
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