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

@ -43,11 +43,11 @@ class Country_SG extends Country {
* @since 2.0.11
* @var array
*/
protected $attributes = array(
protected $attributes = [
'country_code' => 'SG',
'currency' => 'SGD',
'phone_code' => 65,
);
];
/**
* The type of nomenclature used to refer to the country sub-divisions.
@ -76,12 +76,12 @@ class Country_SG extends Country {
*/
protected function states() {
return array(
return [
'01' => __('Central Singapore Community Development Council', 'wp-ultimo'),
'02' => __('North East Community Development Council', 'wp-ultimo'),
'03' => __('North West Community Development Council', 'wp-ultimo'),
'04' => __('South East Community Development Council', 'wp-ultimo'),
'05' => __('South West Community Development Council', 'wp-ultimo'),
);
];
}
}