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.
By Wim Leers on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.8.x
Introduced in version:
8.8.0
Issue links:
Description:
Previously, \Drupal\Core\Extension\Extension
accepted arbitrary input. This led to a lot of incorrect tests. assert()
s have been added to ensure valid input.
To avoid any backwards compatibility breaks, assert()
is used instead of throwing exceptions. This means that no production site can possibly be negatively impacted, only development environments could be.
In Drupal core, only test coverage is constructing \Drupal\Core\Extension\Extension
objects, and the same should be true in contrib and custom code. Tests constructing invalid Extension
objects may need to be updated.
Impacts:
Module developers