Skip to content

Conversation

@JosephSilber
Copy link
Contributor

@JosephSilber JosephSilber commented Aug 13, 2020

#33801 broke the usage of the collection's countBy method when passed a key as a string.

There was obviously no test for it.

This PR fixes it and adds the relevant test.

Closes #33847.

@taylorotwell taylorotwell merged commit 5682bdb into laravel:7.x Aug 13, 2020
@JosephSilber JosephSilber deleted the fix/count-by branch August 17, 2020 12:49
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.

countBy method fails if the field name is passed as a string

4 participants