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

@ -93,11 +93,11 @@ class Country_US extends Country {
* @since 2.0.11
* @var array
*/
protected $attributes = array(
protected $attributes = [
'country_code' => 'US',
'currency' => 'USD',
'phone_code' => 1,
);
];
/**
* The type of nomenclature used to refer to the country sub-divisions.
@ -126,7 +126,7 @@ class Country_US extends Country {
*/
protected function states() {
return array(
return [
'AL' => __('Alabama', 'wp-ultimo'),
'AK' => __('Alaska', 'wp-ultimo'),
'AS' => __('American Samoa', 'wp-ultimo'),
@ -193,6 +193,6 @@ class Country_US extends Country {
'WV' => __('West Virginia', 'wp-ultimo'),
'WI' => __('Wisconsin', 'wp-ultimo'),
'WY' => __('Wyoming', 'wp-ultimo'),
);
];
}
}