Problem/Motivation
PHP Deprecated: Drupal\field_validation\Form\FieldValidationRuleAddForm::buildForm(): Implicitly marking parameter $field_validation_rule_set as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/field_validation/src/Form/FieldValidationRuleAddForm.php on line 53
PHP Deprecated: Drupal\field_validation\Form\FieldValidationRuleFormBase::buildForm(): Implicitly marking parameter $field_validation_rule_set as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/field_validation/src/Form/FieldValidationRuleFormBase.php on line 111
PHP Deprecated: Drupal\field_validation\Form\FieldValidationRuleEditForm::buildForm(): Implicitly marking parameter $field_validation_rule_set as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/field_validation/src/Form/FieldValidationRuleEditForm.php on line 16
PHP Deprecated: Drupal\field_validation\Form\FieldValidationRuleDeleteForm::buildForm(): Implicitly marking parameter $field_validation_rule_set as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/field_validation/src/Form/FieldValidationRuleDeleteForm.php on line 59
Steps to reproduce
- Enable Field Validation module.
- Run Drupal with PHP 8.4.
- Observe PHP warnings caused by implicit nullable
Proposed resolution
Update Implicitly nullable parameter types to Explicitly nullable
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3574015.patch | 3.59 KB | amitajgaonkar |
Issue fork field_validation-3574015
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 #3
vishal.kadamComment #4
amitajgaonkar commentedPatch for 3.x-beta
Comment #5
andreasderijcke#3509056: PHP 8.4 implicit nullable deprecation Already provided this fix for 3.x