Active
Project:
Drupal core
Version:
main
Component:
base system
Priority:
Normal
Category:
Plan
Assigned:
Unassigned
Reporter:
Created:
24 Nov 2026 at 08:14 UTC
Updated:
24 Nov 2026 at 22:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mondrakeI asked LLM to write a script to identify the constructors that may be impacted. It developed the attached script, that uses nikic/php-parser to scan through the codebase, and run it to produce the attached results.
I think the script is currently missing many cases, but it looks like a starting point. I'll see into enhancing it humanly.
Comment #4
mondrakeA custom PHPStan rule could be well suited for the purpose. Asked LLM to draft one, that I then adjusted humanly.
Comment #5
mondrakeMade a couple of example fixes. NR to get early feedback on approach.
Comment #6
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #7
mondrakeComment #8
catchListDataDefinition is what I'd expect things to look like.
NodeGrantDatabaseStorage looks like it got missed by phpstan due to incomplete docs? If so, we might want to split this issue into two for the two kinds of change.
Comment #9
mondrakeChaning to meta. I suggest we introduce the PHPStan rule first, with baselined errors, then open issues to fix the baselined errors.