Skip to content

Commit 7d5011c

Browse files
committed
chore: Apply rector strict config again
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 4eadcf2 commit 7d5011c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/private/Sharing/SharingManager.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ private function validateInteraction(ShareAccessContext $accessContext, Share $s
698698
$action = new ShareAction(null, array_values(array_map(static fn (SharePermission $permission): string => $permission->class, $share->getEnabledPermissions())));
699699

700700
$usersToCheck = [];
701-
if ($share->owner->instance === null && ($ownerUser = $this->userManager->get($share->owner->userId)) !== null) {
701+
if ($share->owner->instance === null && ($ownerUser = $this->userManager->get($share->owner->userId)) instanceof IUser) {
702702
$usersToCheck[] = $ownerUser;
703703
}
704704

0 commit comments

Comments
 (0)