By andypost on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
10.4.x, 11.1.x
Introduced in version:
10.4.0, 11.1.0
Description:
In PHP 8.4, using E_USER_ERROR in trigger_error() has been deprecated. Core replaced all instances of E_USER_ERROR with E_USER_WARNING across various components in Drupal core to ensure compatibility with PHP 8.4.
This change shifts error handling to a less severe level (E_USER_WARNING), allowing for continued execution while still notifying developers and site administrators of potential issues. This approach avoids hard crashes, particularly in scenarios that involve edge cases, and provides a more user-friendly error handling strategy.
Broader clean-up will be done in #3490454: [META] Replace E_USER_WARNING with exception handling for edge cases in error reporting
Impacts:
Module developers