Skip to content

Commit

Permalink
Update File to FileInfo, nextcloud#2964
Browse files Browse the repository at this point in the history
  • Loading branch information
helmo committed Jun 1, 2024
1 parent 542b21d commit 5709eb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/Versions/GroupVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ public function __construct(
IVersionBackend $backend,
IUser $user,
array $metadata,
private File $versionFile,
private FileInfo $versionFile,
private int $folderId,
) {
parent::__construct($timestamp, $revisionId, $name, $size, $mimetype, $path, $sourceFileInfo, $backend, $user, $metadata);
}

public function getVersionFile(): File {
public function getVersionFile(): FileInfo {
return $this->versionFile;
}

Expand Down
4 changes: 2 additions & 2 deletions lib/Versions/VersionsBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function useBackendForStorage(IStorage $storage): bool {
return true;
}

private function getFolderIdForFile(File $file): int {
private function getFolderIdForFile(FileInfo $file): int {
$mount = $file->getMountPoint();

if (!($mount instanceof GroupMountPoint)) {
Expand All @@ -75,7 +75,7 @@ private function getFolderIdForFile(File $file): int {
return $mount->getFolderId();
}

public function getVersionFolderForFile(File $file): Folder {
public function getVersionFolderForFile(FileInfo $file): Folder {
$folderId = $this->getFolderIdForFile($file);

try {
Expand Down

0 comments on commit 5709eb6

Please sign in to comment.