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

@ -124,11 +124,11 @@ class Country_RU extends Country {
* @since 2.0.11
* @var array
*/
protected $attributes = array(
protected $attributes = [
'country_code' => 'RU',
'currency' => 'RUB',
'phone_code' => 7,
);
];
/**
* The type of nomenclature used to refer to the country sub-divisions.
@ -157,7 +157,7 @@ class Country_RU extends Country {
*/
protected function states() {
return array(
return [
'ALT' => __('Altai Krai', 'wp-ultimo'),
'AL' => __('Altai Republic', 'wp-ultimo'),
'AMU' => __('Amur Oblast', 'wp-ultimo'),
@ -242,6 +242,6 @@ class Country_RU extends Country {
'YAN' => __('Yamalo-Nenets Autonomous Okrug', 'wp-ultimo'),
'YAR' => __('Yaroslavl Oblast', 'wp-ultimo'),
'ZAB' => __('Zabaykalsky Krai', 'wp-ultimo'),
);
];
}
}