We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d032938 + 498d54e commit 4431276Copy full SHA for 4431276
includes/Generator/CustomerInfo.php
@@ -61,7 +61,7 @@ protected static function get_country_locale_info( string $country_code = 'en_US
61
*/
62
protected static function get_faker( $country_code = 'en_US' ) {
63
$locale_info = self::get_country_locale_info( $country_code );
64
- $default_locale = $locale_info['default_locale'] ?? 'en_US';
+ $default_locale = ! empty( $locale_info['default_locale'] ) ? $locale_info['default_locale'] : 'en_US';
65
66
$faker = \Faker\Factory::create( $default_locale );
67
0 commit comments