Use PHP 7.4 featers and PHP 8 polyfills
This commit is contained in:
@ -90,7 +90,7 @@ class Legacy_Pricing_Table_Field_Template extends Base_Field_Template {
|
||||
*/
|
||||
public function get_preview(): string {
|
||||
|
||||
return wu_get_asset('checkout-forms/legacy-pricing-table.png');
|
||||
return wu_get_asset('checkout-forms/legacy-pricing-table.webp');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -101,7 +101,7 @@ class Legacy_Pricing_Table_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/pricing-table/legacy', $attributes);
|
||||
}
|
||||
|
@ -68,7 +68,7 @@ class List_Pricing_Table_Field_Template extends Base_Field_Template {
|
||||
*/
|
||||
public function get_preview(): string {
|
||||
|
||||
return wu_get_asset('checkout-forms/list-pricing-table.png');
|
||||
return wu_get_asset('checkout-forms/list-pricing-table.webp');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -79,7 +79,7 @@ class List_Pricing_Table_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/pricing-table/list', $attributes);
|
||||
}
|
||||
|
Reference in New Issue
Block a user