From 67d14dfecb7e2046155ff14927962eadc0791719 Mon Sep 17 00:00:00 2001 From: Chris Taylor Date: Mon, 10 Aug 2026 11:55:51 +0100 Subject: [PATCH 1/2] Fix fatal error on Gravity Forms 3.0.2 upgrade GF 3.0.2 added default values to GF_Field::get_field_label( $force_frontend_label = true, $value = ''). Our override declared the parameters as required, so PHP's LSP signature check triggered a fatal error on load. Reported at: https://wordpress.org/support/topic/fatal-error-when-updating-gravity-forms/ Co-Authored-By: Claude Opus 4.7 (1M context) --- .../src/Integrations/Plugins/Gravity_Forms/Gravity_Field.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prosopo-procaptcha/src/Integrations/Plugins/Gravity_Forms/Gravity_Field.php b/prosopo-procaptcha/src/Integrations/Plugins/Gravity_Forms/Gravity_Field.php index 44c2a43..5f1b0b9 100644 --- a/prosopo-procaptcha/src/Integrations/Plugins/Gravity_Forms/Gravity_Field.php +++ b/prosopo-procaptcha/src/Integrations/Plugins/Gravity_Forms/Gravity_Field.php @@ -62,7 +62,7 @@ public function get_form_editor_field_settings() { * * @since unknown */ - public function get_field_label( $force_frontend_label, $value ) { + public function get_field_label( $force_frontend_label = true, $value = '' ) { return self::get_widget()->get_field_label(); } From 124806fe7aae7518dade410916fd891c8ea23607 Mon Sep 17 00:00:00 2001 From: Chris Taylor Date: Mon, 10 Aug 2026 12:25:55 +0100 Subject: [PATCH 2/2] Fix CI: pass form id to FluentForm Submission::remove Latest Fluent Forms added a required $formId argument to Submission::remove(); calling it without one now throws InvalidArgumentException, which surfaced as a PHP fatal during form submission in CI and broke the fluent-forms cypress spec. The mu-plugin runs only in the test environment. Co-Authored-By: Claude Opus 4.7 (1M context) --- data-for-tests/mu-plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data-for-tests/mu-plugin.php b/data-for-tests/mu-plugin.php index bd4d5cd..5e13c95 100644 --- a/data-for-tests/mu-plugin.php +++ b/data-for-tests/mu-plugin.php @@ -19,7 +19,7 @@ function ( string $url ): string { add_action( 'fluentform/before_submission_confirmation', function ( $insertId, $formData, $form ) { - \FluentForm\App\Models\Submission::remove( array( $insertId ) ); + \FluentForm\App\Models\Submission::remove( array( $insertId ), $form->id ); }, 10, 3