Deprecated function: Creation of dynamic property in PHP 8.2

Created on 1 August 2024, 4 months ago

Hello,

With this module, having PHP 8.2, I am experiencing 6 notices at each run, concerning the creation of dynamic properties. Here are the notices:

Deprecated function: Creation of dynamic property Drupal\email_validator\EVA::$cache is deprecated in Drupal\email_validator\EVA->__construct()

Deprecated function: Creation of dynamic property Drupal\email_validator\EVA::$url is deprecated in Drupal\email_validator\EVA->__construct()

Deprecated function: Creation of dynamic property Drupal\email_validator\EVA::$token is deprecated in Drupal\email_validator\EVA->__construct()

Deprecated function: Creation of dynamic property Drupal\email_validator\EVA::$mail_states is deprecated in Drupal\email_validator\EVA->__construct()

Deprecated function: Creation of dynamic property Drupal\email_validator\EVA::$log_reject is deprecated in Drupal\email_validator\EVA->__construct()

Deprecated function: Creation of dynamic property Drupal\email_validator\EVA::$bypass is deprecated in Drupal\email_validator\EVA->__construct()

As this is due to the deprecation of dynamic property creation in PHP 8.2, I created a small patch (and now also a issue fork) to resolve these issues, please review and merge when possible, let me know if anything else is needed from my side.

🐛 Bug report
Status

Needs review

Version

2.4

Component

Code

Created by

🇳🇱Netherlands rapidr0ll Amsterdam

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024