Use PHP 7.4 featers and PHP 8 polyfills

This commit is contained in:
David Stone
2025-02-08 13:57:32 -07:00
parent 8bea6067cd
commit b41dc2b2eb
550 changed files with 15270 additions and 14627 deletions

View File

@ -77,11 +77,11 @@ class Country_IN extends Country {
* @since 2.0.11
* @var array
*/
protected $attributes = array(
protected $attributes = [
'country_code' => 'IN',
'currency' => 'INR',
'phone_code' => 91,
);
];
/**
* The type of nomenclature used to refer to the country sub-divisions.
@ -110,7 +110,7 @@ class Country_IN extends Country {
*/
protected function states() {
return array(
return [
'AN' => __('Andaman and Nicobar Islands', 'wp-ultimo'),
'AP' => __('Andhra Pradesh', 'wp-ultimo'),
'AR' => __('Arunachal Pradesh', 'wp-ultimo'),
@ -147,6 +147,6 @@ class Country_IN extends Country {
'UP' => __('Uttar Pradesh', 'wp-ultimo'),
'UT' => __('Uttarakhand', 'wp-ultimo'),
'WB' => __('West Bengal', 'wp-ultimo'),
);
];
}
}