By bradjones1 on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
10.0.x
Introduced in version:
10.0.0
Issue links:
Description:
The Symfony 6 HttpKernel component now catches and transforms \Throwable exceptions/errors, instead of just \Exception as in the case in Symfony 4 and 5. This behavior is opt-in for Symfony 6 but will be the only option in Symfony 7. Drupal opts-in to catching \Throwable starting with Drupal 10.0.0.
The vast majority of sites are expected not to be affected by this change. If you have site-specific code that depends on the HttpKernel only catching \Exception, you may override the http_kernel.basic service's arguments.
Impacts:
Module developers