FakerPHP / Faker

Faker is a PHP library that generates fake data for you
https://fakerphp.github.io
Other
3.48k stars 332 forks source link

Correct return type of `Generator::unique()` #787

Closed DannyvdSluijs closed 9 months ago

DannyvdSluijs commented 9 months ago

What is the reason for this PR?

Generator::unique() is documented as returning a Generator where it is actually returning a UniqueGenerator as annotated on the class property. This PR corrects this minor incorrection. Going through the issues and PR I didn't find anything related to this correct other that the initial commit that introduced the function.

Author's checklist

Summary of changes

This PR corrects the return type in the PHPDOC block of the Generator::unique() function

Review checklist

localheinz commented 9 months ago

Thank you, @DannyvdSluijs!