Skip to content

Conversation

@BSN4
Copy link
Contributor

@BSN4 BSN4 commented Nov 21, 2019

Intersect in eloquent collection with empty or null values will give you all the collection values which is different from collection intersect it should give you empty collection.


Closes #30626.

@driesvints
Copy link
Member

This is for #30626

@GrahamCampbell GrahamCampbell changed the title [6.x] fix bug #30626 [6.x] Fix eloquent collection intersect Nov 22, 2019
@taylorotwell taylorotwell merged commit 75827f9 into laravel:6.x Nov 22, 2019
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.

EloquentCollection->intersect misbehaves when called with null argument

4 participants