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

Move US phone numbers with extension to own method #91

Merged
merged 3 commits into from
Dec 1, 2020
Merged

Move US phone numbers with extension to own method #91

merged 3 commits into from
Dec 1, 2020

Conversation

krsriq
Copy link

@krsriq krsriq commented Dec 1, 2020

This PR:

  • Adds a new feature: generating US phone numbers with phoneNumber() now only returns numbers without extension. Numbers with extension can now be generated with phoneNumberWithExtension()
  • Covered by tests
  • Fixes Extension-free US phone numbers #18

Even though it definitely appears to be a thing, I could not find an authoritative source that mentions the usage of x to signify extensions, thus no @link source reference in the docblock.

Signed-off-by: Daniel Schmelz <daniel@schmelz.org>
Signed-off-by: Daniel Schmelz <daniel@schmelz.org>
Signed-off-by: Daniel Schmelz <daniel@schmelz.org>
@bram-pkg bram-pkg merged commit 17becc8 into FakerPHP:main Dec 1, 2020
@krsriq krsriq mentioned this pull request Dec 1, 2020
@MGatner
Copy link

MGatner commented Dec 1, 2020

Hurrah! Thank you! Time to update half a dozen projects 😽

@bram-pkg
Copy link
Member

bram-pkg commented Dec 1, 2020

I mean, it hasn't been released yet. Unless you're running on the main branch from Git.

@krsriq krsriq deleted the move_us_phoneno_w_extension branch December 1, 2020 14:16
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.

Extension-free US phone numbers
4 participants