Skip to content

Commit

Permalink
fix psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtificialOwl committed Feb 1, 2023
1 parent ceb9148 commit 520dfb1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions lib/FilesHooks.php
Expand Up @@ -1250,10 +1250,8 @@ private function getAffectedUsersFromCachedMounts(int $fileId): array {
*/
private function getUnrelatedUsers(int $fileId, array $cachedMounts): array {
/** @var \OCA\GroupFolders\ACL\RuleManager $ruleManager */
/** @var \OCA\GroupFolders\Folder\FolderManager $folderManager */
try {
$ruleManager = \OC::$server->get(\OCA\GroupFolders\ACL\RuleManager::class);
$folderManager = \OC::$server->get(\OCA\GroupFolders\Folder\FolderManager::class);
} catch (\Exception $e) {
return []; // if we have no access to RuleManager, we cannot filter unrelated users
}
Expand Down
1 change: 1 addition & 0 deletions psalm.xml
Expand Up @@ -40,6 +40,7 @@
<referencedClass name="OC\Files\View" />
<referencedClass name="OC\TagManager" />
<referencedClass name="OC\Hooks\Emitter" />
<referencedClass name="OCA\GroupFolders\ACL\RuleManager" />
</errorLevel>
</UndefinedDocblockClass>
</issueHandlers>
Expand Down

0 comments on commit 520dfb1

Please sign in to comment.