aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2025-05-16 17:46:52 +0200
committerDaniel <mail@danielkesselberg.de>2025-06-10 13:55:53 +0200
commit55bca1e5db16c99fe6b20744108d87f496720b24 (patch)
treeea512dab238fb3ed7255359de92916ff94880f4c
parentebdb12f9291a6b21e2469035bd9e40599ff70a9e (diff)
downloadnextcloud-server-55bca1e5db16c99fe6b20744108d87f496720b24.tar.gz
nextcloud-server-55bca1e5db16c99fe6b20744108d87f496720b24.zip
fix: use logical operator instead of bitwise
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
-rw-r--r--build/psalm-baseline.xml6
-rw-r--r--lib/private/Group/Group.php2
2 files changed, 1 insertions, 7 deletions
diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml
index 7b3bc4bb813..5e1cdb28dd3 100644
--- a/build/psalm-baseline.xml
+++ b/build/psalm-baseline.xml
@@ -4044,12 +4044,6 @@
</TypeDoesNotContainNull>
</file>
<file src="lib/private/Group/Group.php">
- <InvalidArgument>
- <code><![CDATA[bool]]></code>
- </InvalidArgument>
- <InvalidOperand>
- <code><![CDATA[$hide]]></code>
- </InvalidOperand>
<LessSpecificReturnStatement>
<code><![CDATA[$users]]></code>
</LessSpecificReturnStatement>
diff --git a/lib/private/Group/Group.php b/lib/private/Group/Group.php
index 147c5baf543..6e42fad8b9f 100644
--- a/lib/private/Group/Group.php
+++ b/lib/private/Group/Group.php
@@ -377,7 +377,7 @@ class Group implements IGroup {
*/
public function hideFromCollaboration(): bool {
return array_reduce($this->backends, function (bool $hide, GroupInterface $backend) {
- return $hide | ($backend instanceof IHideFromCollaborationBackend && $backend->hideGroup($this->gid));
+ return $hide || ($backend instanceof IHideFromCollaborationBackend && $backend->hideGroup($this->gid));
}, false);
}
}