Skip to content

Commit 0a49ad2

Browse files
authored
Updated length on all global e164 numbers (#301)
1 parent 83d2932 commit 0a49ad2

File tree

2 files changed

+152
-151
lines changed

2 files changed

+152
-151
lines changed

roave-bc-check.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
parameters:
22
ignoreErrors:
3-
- '#\[BC\] CHANGED: Property Faker\\Provider\\[a-zA-Z]+::\$[a-zA-Z]+ changed default value#'
4-
- '#\[BC\] CHANGED: Property Faker\\Provider\\[a-z_A-Z]+\\[a-zA-Z]+::\$[a-zA-Z]+ changed default value#'
3+
- '#\[BC\] CHANGED: Property Faker\\Provider\\[a-zA-Z]+::\$[1-9a-zA-Z]+ changed default value#'
4+
- '#\[BC\] CHANGED: Property Faker\\Provider\\[a-z_A-Z]+\\[a-zA-Z]+::\$[1-9a-zA-Z]+ changed default value#'
55
- '#\[BC\] CHANGED: Property Faker\\Factory::\$defaultProviders changed default value#'

src/Faker/Provider/PhoneNumber.php

Lines changed: 150 additions & 149 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class PhoneNumber extends Base
1010

1111
/**
1212
* @see https://github.com/giggsey/libphonenumber-for-php/blob/master/src/CountryCodeToRegionCodeMap.php
13+
* @see https://libphonenumber.appspot.com/phonenumberparser?number=%2B4576597442
1314
*/
1415
protected static $e164Formats = [
1516
'+1##########',
@@ -18,25 +19,25 @@ class PhoneNumber extends Base
1819
'+27##########',
1920
'+30##########',
2021
'+31##########',
21-
'+32##########',
22-
'+33##########',
23-
'+34##########',
24-
'+36##########',
22+
'+32#########',
23+
'+33#########',
24+
'+34#########',
25+
'+36#########',
2526
'+39##########',
26-
'+40##########',
27-
'+41##########',
27+
'+40#########',
28+
'+41#########',
2829
'+43##########',
2930
'+44##########',
30-
'+45##########',
31+
'+45########',
3132
'+46##########',
32-
'+47##########',
33+
'+47########',
3334
'+48##########',
3435
'+49##########',
35-
'+51##########',
36+
'+51#########',
3637
'+52##########',
3738
'+53##########',
3839
'+54##########',
39-
'+55##########',
40+
'+55#########',
4041
'+56##########',
4142
'+57##########',
4243
'+58##########',
@@ -54,179 +55,179 @@ class PhoneNumber extends Base
5455
'+90##########',
5556
'+91##########',
5657
'+92##########',
57-
'+93##########',
58-
'+94##########',
58+
'+93#########',
59+
'+94#########',
5960
'+95##########',
6061
'+98##########',
61-
'+211##########',
62-
'+212##########',
63-
'+213##########',
64-
'+216##########',
65-
'+218##########',
66-
'+220##########',
67-
'+221##########',
68-
'+222##########',
69-
'+223##########',
70-
'+224##########',
62+
'+211#########',
63+
'+212#########',
64+
'+213#########',
65+
'+216########',
66+
'+218#########',
67+
'+220#######',
68+
'+221#########',
69+
'+222########',
70+
'+223########',
71+
'+224#########',
7172
'+225##########',
72-
'+226##########',
73-
'+227##########',
74-
'+228##########',
75-
'+229##########',
76-
'+230##########',
77-
'+231##########',
78-
'+232##########',
79-
'+233##########',
73+
'+226########',
74+
'+227########',
75+
'+228########',
76+
'+229########',
77+
'+230########',
78+
'+231#########',
79+
'+232########',
80+
'+233#########',
8081
'+234##########',
81-
'+235##########',
82-
'+236##########',
83-
'+237##########',
84-
'+238##########',
85-
'+239##########',
86-
'+240##########',
87-
'+241##########',
88-
'+242##########',
89-
'+243##########',
90-
'+244##########',
91-
'+245##########',
92-
'+246##########',
93-
'+247##########',
94-
'+248##########',
95-
'+249##########',
96-
'+250##########',
97-
'+251##########',
98-
'+252##########',
99-
'+253##########',
82+
'+235########',
83+
'+236########',
84+
'+237#########',
85+
'+238#######',
86+
'+239#######',
87+
'+240#########',
88+
'+241########',
89+
'+242#########',
90+
'+243#########',
91+
'+244#########',
92+
'+245#########',
93+
'+246#######',
94+
'+247######',
95+
'+248#######',
96+
'+249#########',
97+
'+250#########',
98+
'+251#########',
99+
'+252#########',
100+
'+253########',
100101
'+254##########',
101-
'+255##########',
102-
'+256##########',
103-
'+257##########',
104-
'+258##########',
105-
'+260##########',
106-
'+261##########',
107-
'+262##########',
102+
'+255#########',
103+
'+256#########',
104+
'+257########',
105+
'+258#########',
106+
'+260#########',
107+
'+261#########',
108+
'+262#########',
108109
'+263##########',
109-
'+264##########',
110-
'+265##########',
111-
'+266##########',
110+
'+264#########',
111+
'+265#########',
112+
'+266########',
112113
'+267##########',
113-
'+268##########',
114-
'+269##########',
115-
'+290##########',
116-
'+291##########',
117-
'+297##########',
118-
'+298##########',
119-
'+299##########',
120-
'+350##########',
121-
'+351##########',
114+
'+268#########',
115+
'+269#######',
116+
'+290#####',
117+
'+291#######',
118+
'+297#######',
119+
'+298######',
120+
'+299######',
121+
'+350########',
122+
'+351#########',
122123
'+352##########',
123124
'+353##########',
124-
'+354##########',
125-
'+355##########',
126-
'+356##########',
127-
'+357##########',
125+
'+354#########',
126+
'+355#########',
127+
'+356########',
128+
'+357########',
128129
'+358##########',
129-
'+359##########',
130-
'+370##########',
131-
'+371##########',
130+
'+359#########',
131+
'+370########',
132+
'+371########',
132133
'+372##########',
133-
'+373##########',
134-
'+374##########',
134+
'+373########',
135+
'+374########',
135136
'+375##########',
136-
'+376##########',
137-
'+377##########',
137+
'+376#########',
138+
'+377#########',
138139
'+378##########',
139140
'+380##########',
140141
'+381##########',
141-
'+382##########',
142-
'+383##########',
143-
'+385##########',
144-
'+386##########',
145-
'+387##########',
146-
'+389##########',
147-
'+420##########',
148-
'+421##########',
149-
'+423##########',
150-
'+500##########',
151-
'+501##########',
152-
'+502##########',
153-
'+503##########',
154-
'+504##########',
155-
'+505##########',
156-
'+506##########',
142+
'+382#########',
143+
'+383#########',
144+
'+385#########',
145+
'+386########',
146+
'+387#########',
147+
'+389########',
148+
'+420#########',
149+
'+421#########',
150+
'+423#########',
151+
'+500#####',
152+
'+501#######',
153+
'+502########',
154+
'+503########',
155+
'+504########',
156+
'+505########',
157+
'+506########',
157158
'+507##########',
158-
'+508##########',
159-
'+509##########',
160-
'+590##########',
161-
'+591##########',
162-
'+592##########',
159+
'+508#########',
160+
'+509########',
161+
'+590#########',
162+
'+591#########',
163+
'+592#######',
163164
'+593##########',
164-
'+594##########',
165+
'+594#########',
165166
'+595##########',
166-
'+596##########',
167-
'+597##########',
167+
'+596#########',
168+
'+597#######',
168169
'+598##########',
169-
'+599##########',
170-
'+670##########',
171-
'+672##########',
172-
'+673##########',
173-
'+674##########',
174-
'+675##########',
175-
'+676##########',
176-
'+677##########',
177-
'+678##########',
178-
'+679##########',
179-
'+680##########',
180-
'+681##########',
181-
'+682##########',
182-
'+683##########',
170+
'+599########',
171+
'+670########',
172+
'+672######',
173+
'+673#######',
174+
'+674#######',
175+
'+675########',
176+
'+676#######',
177+
'+677#######',
178+
'+678#######',
179+
'+679#######',
180+
'+680#######',
181+
'+681#########',
182+
'+682#####',
183+
'+683#######',
183184
'+685##########',
184-
'+686##########',
185-
'+687##########',
186-
'+688##########',
187-
'+689##########',
188-
'+690##########',
189-
'+691##########',
190-
'+692##########',
191-
'+800##########',
192-
'+808##########',
185+
'+686########',
186+
'+687######',
187+
'+688#######',
188+
'+689#########',
189+
'+690#######',
190+
'+691#######',
191+
'+692#######',
192+
'+800########',
193+
'+808########',
193194
'+850##########',
194-
'+852##########',
195-
'+853##########',
195+
'+852#########',
196+
'+853########',
196197
'+855##########',
197198
'+856##########',
198-
'+870##########',
199-
'+878##########',
199+
'+870#########',
200+
'+878############',
200201
'+880##########',
201-
'+881##########',
202+
'+881#########',
202203
'+882##########',
203-
'+883##########',
204+
'+883#########',
204205
'+886##########',
205-
'+888##########',
206+
'+888###########',
206207
'+960##########',
207-
'+961##########',
208-
'+962##########',
209-
'+963##########',
208+
'+961########',
209+
'+962#########',
210+
'+963#########',
210211
'+964##########',
211-
'+965##########',
212+
'+965########',
212213
'+966##########',
213-
'+967##########',
214-
'+968##########',
214+
'+967#########',
215+
'+968#########',
215216
'+970##########',
216217
'+971##########',
217218
'+972##########',
218-
'+973##########',
219-
'+974##########',
220-
'+975##########',
219+
'+973########',
220+
'+974########',
221+
'+975########',
221222
'+976##########',
222223
'+977##########',
223-
'+979##########',
224-
'+992##########',
225-
'+993##########',
226-
'+994##########',
227-
'+995##########',
228-
'+996##########',
229-
'+998##########',
224+
'+979#########',
225+
'+992#########',
226+
'+993########',
227+
'+994#########',
228+
'+995#########',
229+
'+996#########',
230+
'+998#########',
230231
];
231232

232233
/**

0 commit comments

Comments
 (0)