File tree 2 files changed +39
-2
lines changed 2 files changed +39
-2
lines changed Original file line number Diff line number Diff line change 1
1
# CHANGELOG
2
2
3
- ## [ Unreleased] ( https://github.com/FakerPHP/Faker/compare/v1.19.0...main )
3
+ ## [ Unreleased] ( https://github.com/FakerPHP/Faker/compare/v1.20.0...main )
4
+
5
+ ## [ 2022-07-20, v1.20.0] ( https://github.com/FakerPHP/Faker/compare/v1.19.0..v1.20.0 )
6
+
7
+ - Fixed typo in French phone number (#452 )
8
+ - Fixed some Hungarian naming bugs (#451 )
9
+ - Fixed bug where the NL-BE VAT generation was incorrect (#455 )
10
+ - Improve Turkish phone numbers for E164 and added landline support (#460 )
11
+ - Add Microsoft Edge User Agent (#464 )
12
+ - Added option to set image formats on Faker\Provider\Image (#473 )
13
+ - Added support for French color translations (#466 )
14
+ - Support filtering timezones by country code (#480 )
15
+ - Fixed typo in some greek names (#490 )
16
+ - Marked the Faker\Provider\Image as deprecated
4
17
5
18
## [ 2022-02-02, v1.19.0] ( https://github.com/FakerPHP/Faker/compare/v1.18.0..v1.19.0 )
6
19
13
26
- Fix is_IS Address docbock type (#438 )
14
27
- Fix regexify escape backslash in character class (#434 )
15
28
- Removed UUID from Generator to be able to extend it (#441 )
16
- -
29
+
17
30
## [ 2022-01-23, v1.18.0] ( https://github.com/FakerPHP/Faker/compare/v1.17.0..v1.18.0 )
18
31
19
32
- Deprecated UUID, use uuid3 to specify version (#427 )
Original file line number Diff line number Diff line change @@ -52,6 +52,12 @@ public static function imageUrl(
52
52
$ gray = false ,
53
53
$ format = 'png '
54
54
) {
55
+ trigger_deprecation (
56
+ 'fakerphp/faker ' ,
57
+ '1.20 ' ,
58
+ 'Provider is deprecated and will no longer be available in Faker 2. Please use a custom provider instead '
59
+ );
60
+
55
61
// Validate image format
56
62
$ imageFormats = static ::getFormats ();
57
63
@@ -110,6 +116,12 @@ public static function image(
110
116
$ gray = false ,
111
117
$ format = 'png '
112
118
) {
119
+ trigger_deprecation (
120
+ 'fakerphp/faker ' ,
121
+ '1.20 ' ,
122
+ 'Provider is deprecated and will no longer be available in Faker 2. Please use a custom provider instead '
123
+ );
124
+
113
125
$ dir = null === $ dir ? sys_get_temp_dir () : $ dir ; // GNU/Linux / OS X / Windows compatible
114
126
// Validate directory path
115
127
if (!is_dir ($ dir ) || !is_writable ($ dir )) {
@@ -157,11 +169,23 @@ public static function image(
157
169
158
170
public static function getFormats (): array
159
171
{
172
+ trigger_deprecation (
173
+ 'fakerphp/faker ' ,
174
+ '1.20 ' ,
175
+ 'Provider is deprecated and will no longer be available in Faker 2. Please use a custom provider instead '
176
+ );
177
+
160
178
return array_keys (static ::getFormatConstants ());
161
179
}
162
180
163
181
public static function getFormatConstants (): array
164
182
{
183
+ trigger_deprecation (
184
+ 'fakerphp/faker ' ,
185
+ '1.20 ' ,
186
+ 'Provider is deprecated and will no longer be available in Faker 2. Please use a custom provider instead '
187
+ );
188
+
165
189
return [
166
190
static ::FORMAT_JPG => constant ('IMAGETYPE_JPEG ' ),
167
191
static ::FORMAT_JPEG => constant ('IMAGETYPE_JPEG ' ),
You can’t perform that action at this time.
0 commit comments