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

@ -50,11 +50,11 @@ class Country_ZA extends Country {
* @since 2.0.11
* @var array
*/
protected $attributes = array(
protected $attributes = [
'country_code' => 'ZA',
'currency' => 'ZAR',
'phone_code' => 27,
);
];
/**
* The type of nomenclature used to refer to the country sub-divisions.
@ -83,7 +83,7 @@ class Country_ZA extends Country {
*/
protected function states() {
return array(
return [
'EC' => __('Eastern Cape', 'wp-ultimo'),
'FS' => __('Free State', 'wp-ultimo'),
'GP' => __('Gauteng', 'wp-ultimo'),
@ -93,6 +93,6 @@ class Country_ZA extends Country {
'NW' => __('North West', 'wp-ultimo'),
'NC' => __('Northern Cape', 'wp-ultimo'),
'WC' => __('Western Cape', 'wp-ultimo'),
);
];
}
}