diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2025-05-16 17:46:52 +0200 |
---|---|---|
committer | Daniel <mail@danielkesselberg.de> | 2025-06-10 13:55:53 +0200 |
commit | 55bca1e5db16c99fe6b20744108d87f496720b24 (patch) | |
tree | ea512dab238fb3ed7255359de92916ff94880f4c | |
parent | ebdb12f9291a6b21e2469035bd9e40599ff70a9e (diff) | |
download | nextcloud-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.xml | 6 | ||||
-rw-r--r-- | lib/private/Group/Group.php | 2 |
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); } } |