Use PHP 7.4 featers and PHP 8 polyfills

This commit is contained in:
David Stone committed 2025-02-08 13:57:32 -07:00
1 parent 8bea6067cd
commit b41dc2b2eb
550 files changed
+15270 -14627

No files matched your search

+4 -4
View File
@@ -54,11 +54,11 @@ class Country_CA extends Country {
* @since 2.0.11
* @var array
*/
protected $attributes = array(
protected $attributes = [
'country_code' => 'CA',
'currency' => 'CAD',
'phone_code' => 1,
);
];
/**
* The type of nomenclature used to refer to the country sub-divisions.
@@ -87,7 +87,7 @@ class Country_CA extends Country {
*/
protected function states() {
return array(
return [
'AB' => __('Alberta', 'wp-ultimo'),
'BC' => __('British Columbia', 'wp-ultimo'),
'MB' => __('Manitoba', 'wp-ultimo'),
@@ -101,6 +101,6 @@ class Country_CA extends Country {
'QC' => __('Quebec', 'wp-ultimo'),
'SK' => __('Saskatchewan', 'wp-ultimo'),
'YT' => __('Yukon', 'wp-ultimo'),
);
];
}
}