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

@ -45,11 +45,11 @@ class Country_GB extends Country {
* @since 2.0.11
* @var array
*/
protected $attributes = array(
protected $attributes = [
'country_code' => 'GB',
'currency' => 'GBP',
'phone_code' => 44,
);
];
/**
* The type of nomenclature used to refer to the country sub-divisions.
@ -78,7 +78,7 @@ class Country_GB extends Country {
*/
protected function states() {
return array(
return [
'ABE' => __('Aberdeen', 'wp-ultimo'),
'ABD' => __('Aberdeenshire', 'wp-ultimo'),
'ANS' => __('Angus', 'wp-ultimo'),
@ -326,6 +326,6 @@ class Country_GB extends Country {
'WOK' => __('Wokingham', 'wp-ultimo'),
'WOR' => __('Worcestershire', 'wp-ultimo'),
'WRX' => __('Wrexham County Borough', 'wp-ultimo'),
);
];
}
}