Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve type hints in UniqueGenerator #345

Merged
merged 4 commits into from
Jul 14, 2021
Merged

Improve type hints in UniqueGenerator #345

merged 4 commits into from
Jul 14, 2021

Conversation

spawnia
Copy link

@spawnia spawnia commented Jul 8, 2021

What is the reason for this PR?

  • Fixed an issue

With version 1.15.0 of Faker, PHPStan started showing static analysis issues related to the usage of unique().

Author's checklist

Summary of changes

  • Clarifies the intent of the code
  • Aids autocompletion
  • Aids static analysis tools

Review checklist

  • All checks have passed
  • Changes are approved by maintainer

This accomplishes:
- Clarifies the intent of the code
- Aids autocompletion
- Aids static analysis tools
@pimjansen
Copy link

Valid but it is a breaking change by typing the constructor

@jeremyFreeAgent
Copy link

Thanks!

@pimjansen pimjansen merged commit 8f2dcaf into FakerPHP:main Jul 14, 2021
@pimjansen
Copy link

Thanks!

@spawnia spawnia deleted the unique-generator-type-hints branch July 14, 2021 12:44
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.

3 participants