Uh oh!
There was an error while loading. Please reload this page.
Tidy up typing in OC\Files\View - #36836
Conversation
Uh oh!
There was an error while loading. Please reload this page.
8845976 to
73a0066CompareUh oh!
There was an error while loading. Please reload this page.
come-nc
commented
Mar 27, 2023
/rebase |
2cc56d8 to
67a408dComparecome-nc
commented
Mar 30, 2023
@icewind1991https://github.com/nextcloud/server/blob/master/apps/dav/lib/Connector/Sabre/Directory.php#L139-L141 this is blowing up because it puts null in non-nullable parameters. |
come-nc
commented
Mar 30, 2023
For now I went back to weak typing for internalPath in FileInfo. |
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
It’s not used and not in any OCP interface/class. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Applications are calling methods from the class which are not from the public interface, and which cannot be added easily to public interface because Node interface extends FileInfo. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
e618668 to
8f26a5dCompare
ChristophWurst
left a comment
There was a problem hiding this comment.
👍 looks ok but I'm not familiar enough with this area of the code to given an approval
| * @param string $path | ||
| * @return string | ||
| */ | ||
| public function getLocalFolder($path) { |
There was a problem hiding this comment.
Yes, the only place it was used was a test.
icewind1991
commented
Apr 4, 2023
probably makes most sense to change those |
Uh oh!
There was an error while loading. Please reload this page.
| * Get the owner of the file | ||
| * | ||
| * @return \OCP\IUser | ||
| * @return ?\OCP\IUser |
There was a problem hiding this comment.
should be added to critical changes (even if not a de-facto change to raise awareness)
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
juliusknorr
commented
Apr 5, 2023
Causing some test failures on office by stricter typing that might be related to version handling in server. First investigation in nextcloud/richdocuments#2896, to be continued tomorrow. |
DaphneMuller
commented
May 30, 2023
Hello! Are you familiar with our documentation process already? Changes that affect administrators should be documented here: While I understand sometimes it's handy to merge fast to get your changes in, it would be great if next time you could try to add the documentation before merging. You can find more information on that here: If all your documentation efforts are done, please remove the label 'documentation' and check the checkbox in your opening note and I'll stop bugging you :) Many thanks in advance and thanks again for your work! |
| * @param string $path | ||
| * @return string | ||
| */ | ||
| public static function getLocalFolder($path) { |
There was a problem hiding this comment.
Summary
Add return types and fix psalm complaints in View and related classes.
Checklist