refactor(apps): Use constructor property promotion when possible#48790
refactor(apps): Use constructor property promotion when possible#48790provokateurin merged 2 commits intomasterfrom
Conversation
ChristophWurst
left a comment
There was a problem hiding this comment.
Checked apps/dav and some other random samples. Can't see any issues
|
In terms of backporting I'm a fan of not doing it, unless it's touched anyway 🙈 |
|
I would not backport this, I tried to apply it locally and there are too many conflicts that are not worth spending the time on. |
|
|
As far as I can tell it just removes the property and adds the promotion in the constructor. That means if the injection uses the interface we will also use that internally. Judging from the failed tests and the psalm results this doesn't seem to cause problems with every used method already being in the interface (which is really good 🎉) |
8b512ea to
d361ac9
Compare
|
Only problem I found was where the property was called |
Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
d361ac9 to
e842699
Compare
Security section in Personal settings is no longer shown with this pull request due to that. It needs to be fixed too in: |
|
@danxuliu thanks for letting me know, I'll make a PR tomorrow to fix it. |
Summary
Done with rector. Maybe this PR is a bit too big, I can make separate PRs for individual apps if needed.
Checklist