Use PHP 7.4 featers and PHP 8 polyfills

This commit is contained in:
David Stone committed 2025-02-08 13:57:32 -07:00
1 parent 8bea6067cd
commit b41dc2b2eb
550 files changed
+15270 -14627

No files matched your search

@@ -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);
}