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

@ -90,7 +90,7 @@ class Clean_Period_Selection_Field_Template extends Base_Field_Template {
*/
public function get_preview(): string {
return wu_get_asset('checkout-forms/clean-period-selection.png');
return wu_get_asset('checkout-forms/clean-period-selection.webp');
}
/**
@ -101,7 +101,7 @@ class Clean_Period_Selection_Field_Template extends Base_Field_Template {
* @param array $attributes The field template attributes.
* @return void
*/
public function output($attributes) {
public function output($attributes): void {
wu_get_template('checkout/templates/period-selection/clean', $attributes);
}

View File

@ -90,7 +90,7 @@ class Legacy_Period_Selection_Field_Template extends Base_Field_Template {
*/
public function get_preview(): string {
return wu_get_asset('checkout-forms/legacy-period-selection.png');
return wu_get_asset('checkout-forms/legacy-period-selection.webp');
}
/**
@ -101,7 +101,7 @@ class Legacy_Period_Selection_Field_Template extends Base_Field_Template {
* @param array $attributes The field template attributes.
* @return void
*/
public function output($attributes) {
public function output($attributes): void {
wu_get_template('checkout/templates/period-selection/legacy', $attributes);
}