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

CommentFileSizeAuthor
#4 3574015.patch3.59 KBamitajgaonkar
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

vishal.kadam created an issue. See original summary.

vishal.kadam’s picture

Status: Active » Needs review
amitajgaonkar’s picture

StatusFileSize
new3.59 KB

Patch for 3.x-beta

andreasderijcke’s picture

#3509056: PHP 8.4 implicit nullable deprecation Already provided this fix for 3.x