Use PHP 7.4 featers and PHP 8 polyfills
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user