Skip to content

Commit

Permalink
psalm fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 authored and skjnldsv committed Apr 20, 2023
1 parent b453c9f commit e0f40d9
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
3 changes: 1 addition & 2 deletions lib/DAV/GroupFoldersHome.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

use OC\Files\Filesystem;
use OCA\GroupFolders\Folder\FolderManager;
use OCA\Photos\Sabre\Album\AlbumsHome;
use OCP\Files\Cache\ICacheEntry;
use OCP\Files\IRootFolder;
use OCP\IUser;
Expand Down Expand Up @@ -106,7 +105,7 @@ public function getChild($name) {
}

/**
* @return (AlbumsHome)[]
* @return (GroupFolderNode)[]
*/
public function getChildren(): array {
$folders = $this->folderManager->getFoldersForUser($this->user, $this->rootFolder->getMountPoint()->getNumericStorageId());
Expand Down
30 changes: 30 additions & 0 deletions tests/stub.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,9 @@ namespace OC\Files {
class Filesystem {
public static function addStorageWrapper(string $wrapperName, callable $wrapper, int $priority = 50) {
}

public static function getView(string $root): View {
}
}

class FileInfo implements \OCP\Files\FileInfo {
Expand Down Expand Up @@ -566,6 +569,33 @@ namespace OCA\DAV\Connector\Sabre {
}
}

namespace OCA\DAV\Connector\Sabre {

use OCP\Files\FileInfo;

class Principal {}

class Directory extends \Sabre\DAV\Node {


public function __construct(\OC\Files\View $view, FileInfo $info) {
}

function getChild(string $name): \Sabre\DAV\Node {
}
public function delete() {
}
public function getLastModified() {
}
public function setName($name) {
}
public function getName() {
}
public function getFileInfo(): FileInfo {
}
}
}

namespace OC\BackgroundJob {

use OCP\BackgroundJob\IJob;
Expand Down

0 comments on commit e0f40d9

Please sign in to comment.