From 37f751c67a5372d4e26353bd9384bc03744ec77b Mon Sep 17 00:00:00 2001 From: Pim Jansen Date: Wed, 20 Jul 2022 15:12:54 +0200 Subject: [PATCH] Release/1.20.0 (#499) --- CHANGELOG.md | 17 +++++++++++++++-- src/Faker/Provider/Image.php | 24 ++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b30fa41bec..3350f92c70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,19 @@ # CHANGELOG -## [Unreleased](https://github.com/FakerPHP/Faker/compare/v1.19.0...main) +## [Unreleased](https://github.com/FakerPHP/Faker/compare/v1.20.0...main) + +## [2022-07-20, v1.20.0](https://github.com/FakerPHP/Faker/compare/v1.19.0..v1.20.0) + +- Fixed typo in French phone number (#452) +- Fixed some Hungarian naming bugs (#451) +- Fixed bug where the NL-BE VAT generation was incorrect (#455) +- Improve Turkish phone numbers for E164 and added landline support (#460) +- Add Microsoft Edge User Agent (#464) +- Added option to set image formats on Faker\Provider\Image (#473) +- Added support for French color translations (#466) +- Support filtering timezones by country code (#480) +- Fixed typo in some greek names (#490) +- Marked the Faker\Provider\Image as deprecated ## [2022-02-02, v1.19.0](https://github.com/FakerPHP/Faker/compare/v1.18.0..v1.19.0) @@ -13,7 +26,7 @@ - Fix is_IS Address docbock type (#438) - Fix regexify escape backslash in character class (#434) - Removed UUID from Generator to be able to extend it (#441) -- + ## [2022-01-23, v1.18.0](https://github.com/FakerPHP/Faker/compare/v1.17.0..v1.18.0) - Deprecated UUID, use uuid3 to specify version (#427) diff --git a/src/Faker/Provider/Image.php b/src/Faker/Provider/Image.php index 42b24d15a0..0c3ad68c13 100644 --- a/src/Faker/Provider/Image.php +++ b/src/Faker/Provider/Image.php @@ -52,6 +52,12 @@ public static function imageUrl( $gray = false, $format = 'png' ) { + trigger_deprecation( + 'fakerphp/faker', + '1.20', + 'Provider is deprecated and will no longer be available in Faker 2. Please use a custom provider instead' + ); + // Validate image format $imageFormats = static::getFormats(); @@ -110,6 +116,12 @@ public static function image( $gray = false, $format = 'png' ) { + trigger_deprecation( + 'fakerphp/faker', + '1.20', + 'Provider is deprecated and will no longer be available in Faker 2. Please use a custom provider instead' + ); + $dir = null === $dir ? sys_get_temp_dir() : $dir; // GNU/Linux / OS X / Windows compatible // Validate directory path if (!is_dir($dir) || !is_writable($dir)) { @@ -157,11 +169,23 @@ public static function image( public static function getFormats(): array { + trigger_deprecation( + 'fakerphp/faker', + '1.20', + 'Provider is deprecated and will no longer be available in Faker 2. Please use a custom provider instead' + ); + return array_keys(static::getFormatConstants()); } public static function getFormatConstants(): array { + trigger_deprecation( + 'fakerphp/faker', + '1.20', + 'Provider is deprecated and will no longer be available in Faker 2. Please use a custom provider instead' + ); + return [ static::FORMAT_JPG => constant('IMAGETYPE_JPEG'), static::FORMAT_JPEG => constant('IMAGETYPE_JPEG'),