Skip to content

Updates docblock for duplicates collection method to correct its return type#53499

Merged
taylorotwell merged 1 commit intolaravel:11.xfrom
gms8994:11.x
Nov 14, 2024
Merged

Updates docblock for duplicates collection method to correct its return type#53499
taylorotwell merged 1 commit intolaravel:11.xfrom
gms8994:11.x

Conversation

@gms8994
Copy link
Copy Markdown
Contributor

@gms8994 gms8994 commented Nov 13, 2024

The return type that is hinted by duplicates suggests that the callable should return bool, but the callable is passed directly to map, which is typehinted as returning a TMapValue.

Additionally, the documentation online shows no example use of calling duplicates with a callable, which will be my next stop.

@taylorotwell taylorotwell merged commit 448b1b5 into laravel:11.x Nov 14, 2024
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