Browse Source

Revert type casting to fix integration test, but it makes no sense to me atm

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/8429/head
Joas Schilling 3 years ago
parent
commit
5f096c611c
No known key found for this signature in database GPG Key ID: 74434EFE0D2E2205
  1. 2
      lib/Files/Util.php
  2. 3
      tests/psalm-baseline.xml

2
lib/Files/Util.php

@ -67,7 +67,7 @@ class Util {
if (!$node->getStorage()->instanceOfStorage(SharedStorage::class)) {
// The file is not a shared file,
// let's check the accesslist for mount points of groupfolders and external storages
$mountsForFile = $this->userMountCache->getMountsForFileId((int) $fileId);
$mountsForFile = $this->userMountCache->getMountsForFileId($fileId);
$affectedUserIds = array_map(function (ICachedMountInfo $mount) {
return $mount->getUser()->getUID();
}, $mountsForFile);

3
tests/psalm-baseline.xml

@ -181,7 +181,8 @@
</UndefinedClass>
</file>
<file src="lib/Files/Util.php">
<InvalidArgument occurrences="1">
<InvalidArgument occurrences="2">
<code>$fileId</code>
<code>SharedStorage::class</code>
</InvalidArgument>
</file>

Loading…
Cancel
Save