Fixed
Project:
Drupal core
Version:
main
Component:
database system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jul 2026 at 10:06 UTC
Updated:
22 Jul 2026 at 02:07 UTC
Jump to comment: Most recent
Spin off from #3399150: [PP-2] Enable dynamic queries to produce SQL with positional placeholders.
\Drupal\Core\Database\ExceptionHandler methods only rethrow exceptions, but their return type is void.
This leads to static analysis issues and dead code.
Change return types to never.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mondrakeComment #4
daffie commentedAll code changes look good to me.
No new testing is needed.
For me it is RTBC.
Comment #7
catchCommitted/pushed to main, thanks!
This doesn't cherry-pick cleanly to 11.x, I think we can probably live with it only being in main so marking fixed, but also OK to backport to 11.x if we want to.