Problem/Motivation

Deprecated: mass_contact_entity_field_access(): Implicitly marking parameter $items as nullable is deprecated, the explicit nullable type must be used instead in /home/mysite/public_html/xisam/web/modules/contrib/mass_contact/mass_contact.module on line 109

Deprecated: mass_contact_opt_out_allowed_values_callback(): Implicitly marking parameter $entity as nullable is deprecated, the explicit nullable type must be used instead in /home/mysite/public_html/xisam/web/modules/contrib/mass_contact/mass_contact.module on line 132

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

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

tjtj created an issue. See original summary.

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

yusuf_khan’s picture

Status: Active » Needs review
garvitasakhrani’s picture

Fixed the PHP 8.4 deprecation warning by adding the nullable type declaration.
Please review. Thanks!

yusuf_khan’s picture

Status: Needs review » Reviewed & tested by the community

The MR correctly addresses the PHP 8.4 deprecation warnings by explicitly marking implicitly nullable parameters as nullable.