Skip to content

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented Sep 27, 2025

Summary

Weak operators like and and or are misleading as they work different as most people expect them to work.
So migrate to consistent usage of logical operators like && and ||.

See also https://www.php.net/manual/en/language.operators.precedence.php

Checklist

@susnux susnux added 3. to review Waiting for reviews ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) labels Sep 27, 2025
@susnux susnux added this to the Nextcloud 33 milestone Sep 27, 2025
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the refactor/weak-operators branch from ec5ee2c to 64b31bb Compare September 27, 2025 21:02
@susnux susnux marked this pull request as ready for review September 28, 2025 09:22
@susnux susnux requested a review from a team as a code owner September 28, 2025 09:22
@susnux susnux requested review from come-nc, kesselb, nfebe, nickvergessen and provokateurin and removed request for a team September 28, 2025 09:22
Copy link
Contributor

@nfebe nfebe left a comment

Choose a reason for hiding this comment

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

LGTM

Some CI issues

@provokateurin provokateurin merged commit 16708b1 into master Sep 28, 2025
209 of 211 checks passed
@provokateurin provokateurin deleted the refactor/weak-operators branch September 28, 2025 09:42
@nextcloud-bot nextcloud-bot mentioned this pull request Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants