faker
faker copied to clipboard
AttributeError: 'Generator' object has no attribute 'phone_number' error when using en_PH locale
I am not sure about the basic contract, but the en_PH locale does not provide the phone_number method.
reproduction steps:
fake = Faker('en_PH')
fake.phone_number()
Expected result: A valid Philippines phone number.
Actual result: AttributeError: 'Generator' object has no attribute 'phone_number'
@zoltanmajor-seon You would need to use fake.mobile_number()
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.