-
Notifications
You must be signed in to change notification settings - Fork 144
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
phone number format as option instead of hard set to NATIONAL #173
base: master
Are you sure you want to change the base?
phone number format as option instead of hard set to NATIONAL #173
Conversation
…or like single_text widget)
Resolves #171 |
Hi, the travis configuration seems broken |
Thanks for the PR. Travis seems to be fine, but this change is causing tests to fail because you’ve changed the default format to |
Ok thanks @rh389 I'm updating the test case. |
@rh389 tests passed =). |
public function __construct(array $countryChoices) | ||
public function __construct( | ||
array $countryChoices, | ||
$format = PhoneNumberFormat::INTERNATIONAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I wasn't clear before. The test cases were fine, they highlighted a breaking change. The problem is this line - the default option should be NATIONAL
because that's what it was fixed to before.
Anything else is going to result in a change in behaviour for peoples' existing setups.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok i revert test changes and set default format to national, thank you @rh389
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you could add a few more tests to those cases to check the desired result with a couple of different formats, that'd be perfect. Thanks again!
@rh389 default format set to NATIONAL |
hi @rh389 , do you validate the tests ? |
@rh389 ping |
behavior like single_text widget)