- Issue created by @rapidr0ll
- Status changed to Needs review
4 months ago 10:07pm 1 August 2024
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.
Needs review
2.4
Code