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

@ -57,11 +57,11 @@ class Country_MY extends Country {
* @since 2.0.11
* @var array
*/
protected $attributes = array(
protected $attributes = [
'country_code' => 'MY',
'currency' => 'MYR',
'phone_code' => 60,
);
];
/**
* The type of nomenclature used to refer to the country sub-divisions.
@ -90,7 +90,7 @@ class Country_MY extends Country {
*/
protected function states() {
return array(
return [
'10' => __('Selangor', 'wp-ultimo'),
'11' => __('Terengganu', 'wp-ultimo'),
'12' => __('Sabah', 'wp-ultimo'),
@ -107,6 +107,6 @@ class Country_MY extends Country {
'07' => __('Penang', 'wp-ultimo'),
'08' => __('Perak', 'wp-ultimo'),
'09' => __('Perlis', 'wp-ultimo'),
);
];
}
}