Needs review
Project:
Drupal core
Version:
main
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Nov 2026 at 22:03 UTC
Updated:
26 Nov 2026 at 08:52 UTC
Jump to comment: Most recent
Comments
Comment #3
mondrakeComment #4
smustgrave commentedGoing to mark this one as it least touches 6 files but almost feel like this could be a massive MR too, sure we have a lot of files missing constructor promotion.
Almost moved to NW that we could we could drop the docblock for _construct but the variable names aren't actually super clear so think it does bring value.
Comment #5
dcam commented@smustgrave beat me to it. I tried to find something to comment about, but I couldn't. It's pretty straightforward. I verified that all the parameters are in the right place. I suppose we can't add property type hints. That's about the only thing I could think of to mention.
Comment #6
mondrakeI think for BC we need to make the DiffOp parameters optional.
Comment #7
mondrakeOver 380 cases, see #3641651: Introduce PHPStan rule to control property promotion in constructors - which could use a review BTW ;)