Skip to content

Commit 37f751c

Browse files
authored
Release/1.20.0 (#499)
1 parent 45b21c1 commit 37f751c

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

CHANGELOG.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
# CHANGELOG
22

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
417

518
## [2022-02-02, v1.19.0](https://github.com/FakerPHP/Faker/compare/v1.18.0..v1.19.0)
619

@@ -13,7 +26,7 @@
1326
- Fix is_IS Address docbock type (#438)
1427
- Fix regexify escape backslash in character class (#434)
1528
- Removed UUID from Generator to be able to extend it (#441)
16-
-
29+
1730
## [2022-01-23, v1.18.0](https://github.com/FakerPHP/Faker/compare/v1.17.0..v1.18.0)
1831

1932
- Deprecated UUID, use uuid3 to specify version (#427)

src/Faker/Provider/Image.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ public static function imageUrl(
5252
$gray = false,
5353
$format = 'png'
5454
) {
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+
5561
// Validate image format
5662
$imageFormats = static::getFormats();
5763

@@ -110,6 +116,12 @@ public static function image(
110116
$gray = false,
111117
$format = 'png'
112118
) {
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+
113125
$dir = null === $dir ? sys_get_temp_dir() : $dir; // GNU/Linux / OS X / Windows compatible
114126
// Validate directory path
115127
if (!is_dir($dir) || !is_writable($dir)) {
@@ -157,11 +169,23 @@ public static function image(
157169

158170
public static function getFormats(): array
159171
{
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+
160178
return array_keys(static::getFormatConstants());
161179
}
162180

163181
public static function getFormatConstants(): array
164182
{
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+
165189
return [
166190
static::FORMAT_JPG => constant('IMAGETYPE_JPEG'),
167191
static::FORMAT_JPEG => constant('IMAGETYPE_JPEG'),

0 commit comments

Comments
 (0)