diff --git a/includes/Generator/CustomerInfo.php b/includes/Generator/CustomerInfo.php index 7726490..4357149 100644 --- a/includes/Generator/CustomerInfo.php +++ b/includes/Generator/CustomerInfo.php @@ -61,7 +61,7 @@ protected static function get_country_locale_info( string $country_code = 'en_US */ protected static function get_faker( $country_code = 'en_US' ) { $locale_info = self::get_country_locale_info( $country_code ); - $default_locale = $locale_info['default_locale'] ?? 'en_US'; + $default_locale = ! empty( $locale_info['default_locale'] ) ? $locale_info['default_locale'] : 'en_US'; $faker = \Faker\Factory::create( $default_locale );