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

@ -53,11 +53,11 @@ class Country_NL extends Country {
* @since 2.0.11
* @var array
*/
protected $attributes = array(
protected $attributes = [
'country_code' => 'NL',
'currency' => 'EUR',
'phone_code' => 31,
);
];
/**
* The type of nomenclature used to refer to the country sub-divisions.
@ -86,7 +86,7 @@ class Country_NL extends Country {
*/
protected function states() {
return array(
return [
'BQ1' => __('Bonaire', 'wp-ultimo'),
'DR' => __('Drenthe', 'wp-ultimo'),
'FL' => __('Flevoland', 'wp-ultimo'),
@ -102,6 +102,6 @@ class Country_NL extends Country {
'ZH' => __('South Holland', 'wp-ultimo'),
'UT' => __('Utrecht', 'wp-ultimo'),
'ZE' => __('Zeeland', 'wp-ultimo'),
);
];
}
}