Hello,

currently when using php 8.4 after each and every drush cr I get deprecation warnings:

PHP Deprecated:  Drupal\easy_email\Form\EasyEmailForm::__construct(): Implicitly marking parameter $time as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/easy_email2/src/Form/EasyEmailForm.php on line 44

I'll create a patch for that.

Bye Defcon0

CommentFileSizeAuthor
#2 3539787-php-8.4-implicit.patch2.93 KBdefcon0

Issue fork easy_email-3539787

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

defcon0 created an issue. See original summary.

defcon0’s picture

StatusFileSize
new2.93 KB
trickfun’s picture

There is also

Drupal\easy_email\Form\EasyEmailForm::__construct(): Implicitly marking parameter $entity_type_bundle_info as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/easy_email/src/Form/EasyEmailForm.php on line 44
PHP Deprecated:  Drupal\easy_email\EasyEmailStorage::__construct(): Implicitly marking parameter $memory_cache as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/easy_email/src/EasyEmailStorage.php on line 61
PHP Deprecated:  Drupal\easy_email\EasyEmailStorage::__construct(): Implicitly marking parameter $entity_type_bundle_info as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/easy_email/src/EasyEmailStorage.php on line 61
PHP Deprecated:  Drupal\easy_email\EasyEmailStorage::__construct(): Implicitly marking parameter $entity_type_manager as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/easy_email/src/EasyEmailStorage.php on line 61
PHP Deprecated:  Drupal\easy_email\EasyEmailStorage::__construct(): Implicitly marking parameter $event_dispatcher as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/easy_email/src/EasyEmailStorage.php on line 61
PHP Deprecated:  Drupal\easy_email\Form\EasyEmailForm::__construct(): Implicitly marking parameter $entity_type_bundle_info as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/easy_email/src/Form/EasyEmailForm.php on line 44
PHP Deprecated:  Drupal\easy_email\Form\EasyEmailForm::__construct(): Implicitly marking parameter $time as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/easy_email/src/Form/EasyEmailForm.php on line 44

Thank you

sourabhsisodia_’s picture

Assigned: Unassigned » sourabhsisodia_
bluegeek9’s picture

Assigned: sourabhsisodia_ » bluegeek9

bluegeek9’s picture

Assigned: bluegeek9 » Unassigned
Status: Active » Needs review
webchick’s picture

Status: Needs review » Reviewed & tested by the community

Thanks a bunch! This fixed #3555554: Drupal CMS blows up if installed with PHP 8.4 + E_ALL error reporting for me.

Reviewed the changes, and they're simply adding the ? prefix on various variables in the method declarations to indicate they are nullable types.

zengenuity’s picture

Status: Reviewed & tested by the community » Fixed

Merged. Thanks everyone!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

zengenuity’s picture

Released in 3.0.7.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.