Skip to content

fix: EloquentCollection find and unique generics#53239

Merged
taylorotwell merged 1 commit into
laravel:11.xfrom
calebdw:collection_unique_find
Oct 21, 2024
Merged

fix: EloquentCollection find and unique generics#53239
taylorotwell merged 1 commit into
laravel:11.xfrom
calebdw:collection_unique_find

Conversation

@calebdw
Copy link
Copy Markdown
Contributor

@calebdw calebdw commented Oct 19, 2024

Hello!

Please see larastan/larastan#1985 (comment) for context.

This fixes the EloquentCollection unique generics to wok with non-generic custom collections. I also made the find method more accurate based on the parameter types.

Thanks!

@calebdw calebdw force-pushed the collection_unique_find branch from 2e27151 to 6bcf993 Compare October 19, 2024 16:54
@taylorotwell taylorotwell merged commit 6247370 into laravel:11.x Oct 21, 2024
@calebdw
Copy link
Copy Markdown
Contributor Author

calebdw commented Oct 21, 2024

Thanks!

@calebdw calebdw deleted the collection_unique_find branch October 21, 2024 14:08
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