Problem/Motivation

On PHP 8.4+, `WebformRemoteSelectElement` triggers deprecation notices when optional `$webform_submission` parameters use a typed default of `null` without an explicit nullable type:

Steps to reproduce

1. Install `webform_remote_select` 1.0.9 on Drupal 10/11 with PHP 8.4+ and error reporting that shows deprecations.
2. Create or open a webform that uses a **Remote select** element.
3. Load the webform (add/edit submission page).

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

luigisa created an issue. See original summary.

tribekk made their first commit to this issue’s fork.

tribekk’s picture

Status: Active » Needs review

Opened MR !3.

This ports the attached patch into an issue fork/MR and changes the optional WebformSubmissionInterface parameters in WebformRemoteSelectElement to explicit nullable types for PHP 8.4 compatibility. Behavior is unchanged.

Checked locally:
- php -l on all PHP files
- git diff --check

There is no composer.json in this module checkout, so I could not run composer-based checks locally.

Credit to luigisa for the original patch.