Skip to content

Commit d4cf415

Browse files
authored
Fix Fatal PHP Error (#4276)
* Fix a PHP fatal error in WordPress 6.7 and PHP 8.2 * Increment version number * Exclude PHP 8.4 globals * Ensure the array_all is global * Update scoper config * Update config * Fix finder
1 parent be256a9 commit d4cf415

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

pay-with-flex.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Plugin Name: Flex HSA/FSA Payments
44
* Description: Accept HSA/FSA payments directly in the checkout flow.
5-
* Version: 3.1.14
5+
* Version: 3.1.15
66
* Plugin URI: https://wordpress.org/plugins/pay-with-flex/
77
* Author: Flex
88
* Author URI: https://withflex.com/

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: withflex, davidbarratt
33
Tags: hsa, fsa, payments, woocommerce
44
Requires at least: 6.7
55
Tested up to: 6.8
6-
Stable tag: 3.1.14
6+
Stable tag: 3.1.15
77
Requires PHP: 8.1
88
License: GPLv3 or later
99
License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -55,6 +55,9 @@ Flex makes this process simple by offering asynchronous telehealth visits direct
5555

5656
== Changelog ==
5757

58+
= 3.1.15 =
59+
* Fixed a fatal error with WordPress 6.7 and PHP <8.4.
60+
5861
= 3.1.14 =
5962
* Added support for WordPress 6.7.
6063

scoper.inc.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
foreach ( $exclude_finder as $file ) {
2424
$excluded_files[] = str_replace( __DIR__ . '/', '', $file->getPathname() );
2525
}
26+
2627
$excluded = array();
2728
$dirs = array(
2829
__DIR__ . '/../../excludes',
@@ -70,7 +71,7 @@
7071
'exclude-files' => $excluded_files,
7172
'php-version' => '8.4',
7273
'exclude-namespaces' => array(
73-
'Symfony\\Polyfill\\*',
74+
'Symfony\Polyfill',
7475
),
7576
'exclude-classes' => $excluded_classes,
7677
'exclude-functions' => $excluded_functions,

0 commit comments

Comments
 (0)