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

@ -41,14 +41,14 @@ class Membership_Status extends Enum {
*/
protected function classes() {
return array(
return [
static::PENDING => 'wu-bg-gray-200 wu-text-gray-700',
static::ACTIVE => 'wu-bg-green-200 wu-text-green-700',
static::TRIALING => 'wu-bg-orange-200 wu-text-orange-700',
static::ON_HOLD => 'wu-bg-blue-200 wu-text-blue-700',
static::EXPIRED => 'wu-bg-yellow-200 wu-text-yellow-700',
static::CANCELLED => 'wu-bg-red-200 wu-text-red-700',
);
];
}
/**
@ -59,13 +59,13 @@ class Membership_Status extends Enum {
*/
protected function labels() {
return array(
return [
static::PENDING => __('Pending', 'wp-ultimo'),
static::ACTIVE => __('Active', 'wp-ultimo'),
static::TRIALING => __('Trialing', 'wp-ultimo'),
static::ON_HOLD => __('On Hold', 'wp-ultimo'),
static::EXPIRED => __('Expired', 'wp-ultimo'),
static::CANCELLED => __('Cancelled', 'wp-ultimo'),
);
];
}
}