By br0ken on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
10.1.x
Introduced in version:
10.1.0
Description:
The \Drupal\Component\Assertion\Handle is deprecated in Drupal 10.1.0 and will be removed from Drupal 11.0.0. Instead, replace the calls to \Drupal\Component\Assertion\Handle::register() method with assert_options(ASSERT_EXCEPTION, TRUE).
For this reason, example.settings.local.php has been updated to change the default assertion handling from:
assert_options(ASSERT_ACTIVE, TRUE);
\Drupal\Component\Assertion\Handle::register();
to:
assert_options(ASSERT_ACTIVE, TRUE);
assert_options(ASSERT_EXCEPTION, TRUE);
Site owners using settings.local.php for development sites should update their workflow with this change.
EDIT the assert_options() is deprecated in PHP 8.3, see https://www.drupal.org/node/3391611
to enable assertions PHP should be configured with zend.assertions
Impacts:
Module developers
Site templates, recipes and distribution developers