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).
| Comment | File | Size | Author |
|---|---|---|---|
| webform_remote_select-php84-nullable-webform_submission.patch | 1.73 KB | luigisa |
Issue fork webform_remote_select-3591979
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
Comment #4
tribekk commentedOpened 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.