Skip to content

Commit

Permalink
Fix psalm error
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos authored and backportbot-libresign[bot] committed Nov 23, 2023
1 parent d155dbb commit 292363f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion lib/Service/FileService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
3 changes: 0 additions & 3 deletions tests/psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@
<code>$this-&gt;rootFolder</code>
<code>private</code>
</MissingDependency>
<UndefinedMethod occurrences="1">
<code>getFileByPath</code>
</UndefinedMethod>
</file>
<file src="lib/Service/FolderService.php">
<MissingDependency occurrences="5">
Expand Down

0 comments on commit 292363f

Please sign in to comment.