Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
We want to show users of APIs that certain aspects of APIs are deprecated. E_USER_DEPRECATED is the perfect tool for that,
as it actually allows people to see the errors.
Points to discuss
* How to leverage it properly
* How to integrate it into tests: #2488860: Bring phpunit bridge into drupal and use it for unit tests and simpletest to handle Deprecation is one related issue
Comments
Comment #2
catchMarking duplicate of #2575081: [policy, no patch] Use E_USER_DEPRECATED in Drupal 8 minor releases.