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

@ -36,7 +36,7 @@ class Checkout_Steps extends Rule {
* @since 2.0.0
* @var array
*/
protected $fillableParams = array(); // phpcs:ignore
protected $fillableParams = []; // phpcs:ignore
/**
* Performs the actual check.
*
@ -90,11 +90,11 @@ class Checkout_Steps extends Rule {
*/
$submittable_field_types = apply_filters(
'wu_checkout_step_validation_submittable_field_types',
array(
[
'submit_button',
'pricing_table',
'template_selection',
)
]
);
/**
@ -103,11 +103,11 @@ class Checkout_Steps extends Rule {
foreach ($value as $step) {
$found_submittable_field_types = \Arrch\Arrch::find(
$step['fields'],
array(
'where' => array(
array('type', $submittable_field_types),
),
)
[
'where' => [
['type', $submittable_field_types],
],
]
);
if (empty($found_submittable_field_types)) {