diff --git a/lib/Service/FileService.php b/lib/Service/FileService.php index 8ec9443c33..b390159a8f 100644 --- a/lib/Service/FileService.php +++ b/lib/Service/FileService.php @@ -462,7 +462,7 @@ public function getPage(string $uuid, int $page, string $uid): string { } public function setFileByPath(string $path): self { - $node = $this->getFileByPath($path); + $node = $this->folderService->getFileByPath($path); $this->setFileByType('FileId', $node->getId()); return $this; } diff --git a/tests/psalm-baseline.xml b/tests/psalm-baseline.xml index 540d880f60..3059db178f 100644 --- a/tests/psalm-baseline.xml +++ b/tests/psalm-baseline.xml @@ -108,9 +108,6 @@ $this->rootFolder private - - getFileByPath -