Skip to content

Commit 55bca1e

Browse files
committed
fix: use logical operator instead of bitwise
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
1 parent ebdb12f commit 55bca1e

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

build/psalm-baseline.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4044,12 +4044,6 @@
40444044
</TypeDoesNotContainNull>
40454045
</file>
40464046
<file src="lib/private/Group/Group.php">
4047-
<InvalidArgument>
4048-
<code><![CDATA[bool]]></code>
4049-
</InvalidArgument>
4050-
<InvalidOperand>
4051-
<code><![CDATA[$hide]]></code>
4052-
</InvalidOperand>
40534047
<LessSpecificReturnStatement>
40544048
<code><![CDATA[$users]]></code>
40554049
</LessSpecificReturnStatement>

lib/private/Group/Group.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ public function canAddUser(): bool {
377377
*/
378378
public function hideFromCollaboration(): bool {
379379
return array_reduce($this->backends, function (bool $hide, GroupInterface $backend) {
380-
return $hide | ($backend instanceof IHideFromCollaborationBackend && $backend->hideGroup($this->gid));
380+
return $hide || ($backend instanceof IHideFromCollaborationBackend && $backend->hideGroup($this->gid));
381381
}, false);
382382
}
383383
}

0 commit comments

Comments
 (0)