Use PHP 7.4 featers and PHP 8 polyfills
This commit is contained in:
@ -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'),
|
||||
);
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user