-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Run rector on lib/private #56496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Run rector on lib/private #56496
Conversation
Signed-off-by: Carl Schwan <[email protected]>
6d0f4e2 to
fe8cd31
Compare
Signed-off-by: Carl Schwan <[email protected]>
fe8cd31 to
22cc35c
Compare
|
We were always a bit hesitant to do this, but I guess we just have to do it at some point. I'm fine with doing it now, if there is anything wrong we hopefully have enough time until 33. |
OC\ServerContainer is not inherinting from IServerContainer so expose the most near type. Signed-off-by: Carl Schwan <[email protected]>
We do need to bit the bullet at some point :) |
miaulalala
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First batch
miaulalala
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First batch
fd76274 to
71342b0
Compare
60f3578 to
ce62cda
Compare
Signed-off-by: Carl Schwan <[email protected]>
Signed-off-by: Carl Schwan <[email protected]>
Signed-off-by: Carl Schwan <[email protected]>
ce62cda to
95fbaeb
Compare
miaulalala
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Batch 2 🥇
miaulalala
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Batch 2 🥇
66dbebd to
3a009c9
Compare
Thanks for the careful review :) Applied almost everything, aside of a few things that were breaking some other parts |
3a009c9 to
53888a4
Compare
Signed-off-by: Carl Schwan <[email protected]>
53888a4 to
dbe79cf
Compare
salmart-dev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the small issues in the comments I noticed many changes in constructor parameter names. Those would be breaking changes since PHP has named parameters support, but I assume that we don't use that internally. I think all classes I saw with this kind of change were all internal.
| @@ -68,7 +58,6 @@ public function process(LoginData $loginData): LoginResult { | |||
| } | |||
|
|
|||
| return LoginResult::success( | |||
| $loginData, | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: why is this argument being removed? I see the function still has two parameters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the loginData parameter was unused. I also removed it from the function
Signed-off-by: Carl Schwan <[email protected]>
Summary
Seems to work fine locally and the CI is also happy
I ended up doing some manual changes to lib/private/Group/Group.php, to lib/private/Server.php and to lib/private/AppFramework/DependencyInjection/DIContainer.php to make it work
TODO
Checklist
3. to review, feature component)stable32)