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

@ -16,9 +16,9 @@
*/
wu_get_template(
'checkout/fields/partials/field-title',
array(
[
'field' => $field,
)
]
);
?>
@ -44,9 +44,9 @@
*/
wu_get_template(
'checkout/fields/partials/field-errors',
array(
[
'field' => $field,
)
]
);
?>

View File

@ -28,9 +28,9 @@
*/
wu_get_template(
'checkout/fields/partials/field-errors',
array(
[
'field' => $field,
)
]
);
?>

View File

@ -18,9 +18,9 @@
*/
wu_get_template(
'checkout/fields/partials/field-title',
array(
[
'field' => $field,
)
]
);
?>
@ -34,15 +34,15 @@
$form = new \WP_Ultimo\UI\Form(
$field->id,
$field->fields,
array(
[
'views' => 'checkout/fields',
'classes' => 'wu-flex wu-my-1',
'field_wrapper_classes' => 'wu-bg-transparent',
'wrap_tag' => 'span',
'step' => (object) array(
'step' => (object) [
'classes' => '',
),
)
],
]
);
$form->render();
@ -54,9 +54,9 @@
*/
wu_get_template(
'checkout/fields/partials/field-errors',
array(
[
'field' => $field,
)
]
);
?>

View File

@ -29,9 +29,9 @@
*/
wu_get_template(
'checkout/fields/partials/field-errors',
array(
[
'field' => $field,
)
]
);
?>

View File

@ -19,9 +19,9 @@
*/
wu_get_template(
'checkout/fields/partials/field-title',
array(
[
'field' => $field,
)
]
);
/**
@ -31,9 +31,9 @@
*/
wu_get_template(
'checkout/fields/partials/field-description',
array(
[
'field' => $field,
)
]
);
?>
@ -53,9 +53,9 @@
*/
wu_get_template(
'checkout/fields/partials/field-errors',
array(
[
'field' => $field,
)
]
);
?>

View File

@ -16,9 +16,9 @@
*/
wu_get_template(
'checkout/fields/partials/field-title',
array(
[
'field' => $field,
)
]
);
?>
@ -48,9 +48,9 @@
*/
wu_get_template(
'checkout/fields/partials/field-errors',
array(
[
'field' => $field,
)
]
);
?>

View File

@ -19,9 +19,9 @@ $active_gateways = wu_get_active_gateway_as_options();
*/
wu_get_template(
'checkout/fields/partials/field-title',
array(
[
'field' => $field,
)
]
);
?>
@ -71,9 +71,9 @@ $active_gateways = wu_get_active_gateway_as_options();
*/
wu_get_template(
'checkout/fields/partials/field-errors',
array(
[
'field' => $field,
)
]
);
/**

View File

@ -16,9 +16,9 @@
*/
wu_get_template(
'checkout/fields/partials/field-title',
array(
[
'field' => $field,
)
]
);
?>
@ -44,9 +44,9 @@
*/
wu_get_template(
'checkout/fields/partials/field-errors',
array(
[
'field' => $field,
)
]
);
?>

View File

@ -16,9 +16,9 @@
*/
wu_get_template(
'checkout/fields/partials/field-title',
array(
[
'field' => $field,
)
]
);
?>
@ -44,9 +44,9 @@
*/
wu_get_template(
'checkout/fields/partials/field-errors',
array(
[
'field' => $field,
)
]
);
?>

View File

@ -16,9 +16,9 @@
*/
wu_get_template(
'checkout/fields/partials/field-title',
array(
[
'field' => $field,
)
]
);
?>
@ -65,9 +65,9 @@
*/
wu_get_template(
'checkout/fields/partials/field-errors',
array(
[
'field' => $field,
)
]
);
?>

View File

@ -16,9 +16,9 @@
*/
wu_get_template(
'checkout/fields/partials/field-title',
array(
[
'field' => $field,
)
]
);
?>
@ -27,7 +27,7 @@
<div class="sm:wu-flex wu-items-stretch wu-content-center">
<div <?php echo wu_array_to_html_attrs($field->prefix_html_attr ?? array()); ?>>
<div <?php echo wu_array_to_html_attrs($field->prefix_html_attr ?? []); ?>>
<?php echo $field->prefix; ?>
</div>
@ -37,7 +37,7 @@
<?php if ($field->suffix) : ?>
<div <?php echo wu_array_to_html_attrs($field->suffix_html_attr ?? array()); ?>>
<div <?php echo wu_array_to_html_attrs($field->suffix_html_attr ?? []); ?>>
<?php echo $field->suffix; ?>
</div>
@ -58,9 +58,9 @@
*/
wu_get_template(
'checkout/fields/partials/field-errors',
array(
[
'field' => $field,
)
]
);
?>

View File

@ -28,9 +28,9 @@
*/
wu_get_template(
'checkout/fields/partials/field-errors',
array(
[
'field' => $field,
)
]
);
?>