Pre-populated data - Invalid phone number

I’m trying to pre-populate the phone number field when creating a PaymentLinkRequest. I have tried the following formats when using the setBuyerPhoneNumber method on the PrePopulatedData object:

+15555555555
+1 (555) 555-5555
(555) 555-5555
5555555555

In all instances I’m getting the following error:

INVALID_REQUEST_ERROR
INVALID_PHONE_NUMBER
Invalid phone number.
pre_populated_data.buyer_phone_number

I’ve read through the docs, and as far I can tell, the first 2 formats should work. What am I doing wrong? I’m using the PHP SDK v31.0.0.20230925

Looks like the issue is that Square is actually validating the number itself. Since 555 prefixed phone numbers are technically invalid, they will not validate with Square. Once I entered an actual phone number it worked. Makes sense now, but might be good for the square team to mention this in the docs.