laravel / framework

The Laravel Framework.
https://laravel.com
MIT License
32.69k stars 11.05k forks source link

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

Closed gms8994 closed 2 weeks ago

gms8994 commented 2 weeks ago

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.