Skip to content

Conversation

@tobiasKaminsky
Copy link
Member

Summary

sorts tags before returning via webdav

Checklist

@blizzz
Copy link
Member

blizzz commented May 4, 2023

This should fail with PHP Warning: Array to string conversion in php shell code on line x

P.S.: Or rather PHP Warning: Uncaught Error: Object of class SystemTag could not be converted to string in …

Copy link
Member

@skjnldsv skjnldsv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See @blizzz comment

@skjnldsv
Copy link
Member

skjnldsv commented May 4, 2023

Will push fix

@skjnldsv
Copy link
Member

skjnldsv commented May 4, 2023

Done

@skjnldsv skjnldsv requested a review from blizzz May 4, 2023 11:19
@blizzz blizzz mentioned this pull request May 4, 2023
@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels May 4, 2023
@blizzz
Copy link
Member

blizzz commented May 4, 2023

@skjnldsv in parallel i did #38067 as alternative

Signed-off-by: tobiasKaminsky <[email protected]>
@icewind1991
Copy link
Member

#38067 is probably the better place to do the sorting

@skjnldsv skjnldsv closed this May 4, 2023
@skjnldsv skjnldsv deleted the sortTags branch May 4, 2023 11:28
Comment on lines +62 to +64
usort($this->tags, function(SystemTag $a, SystemTag $b) {
return strnatcmp($a->getName(), $b->getName());
});

Check notice

Code scanning / Psalm

ArgumentTypeCoercion

Type OCP\SystemTag\ISystemTag should be a subtype of OC\SystemTag\SystemTag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish feature: tags

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants