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

@ -73,11 +73,11 @@ class Country_MX extends Country {
* @since 2.0.11
* @var array
*/
protected $attributes = array(
protected $attributes = [
'country_code' => 'MX',
'currency' => 'MXN',
'phone_code' => 52,
);
];
/**
* The type of nomenclature used to refer to the country sub-divisions.
@ -106,7 +106,7 @@ class Country_MX extends Country {
*/
protected function states() {
return array(
return [
'AGU' => __('Aguascalientes', 'wp-ultimo'),
'BCN' => __('Baja California', 'wp-ultimo'),
'BCS' => __('Baja California Sur', 'wp-ultimo'),
@ -139,6 +139,6 @@ class Country_MX extends Country {
'VER' => __('Veracruz de Ignacio de la Llave', 'wp-ultimo'),
'YUC' => __('Yucatán', 'wp-ultimo'),
'ZAC' => __('Zacatecas', 'wp-ultimo'),
);
];
}
}