Skip to content

Commit

Permalink
chore: Add CacheJail and Jail::rootPath to the stubs
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Calviño Sánchez <[email protected]>
  • Loading branch information
danxuliu committed Aug 23, 2024
1 parent f35cd76 commit 13f0d7d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/stub.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -622,9 +622,15 @@ namespace OC\Files\Cache {

namespace OC\Files\Cache\Wrapper {
use OC\Files\Cache\Cache;
use OCP\Files\Cache\ICache;

class CacheWrapper extends Cache {
public function getCache(): Cache {}
}

class CacheJail extends CacheWrapper {
public function __construct(?ICache $cache, string $root, ?CacheDependencies $dependencies = null) {}
}
}

namespace OC\Files {
Expand Down Expand Up @@ -1501,6 +1507,7 @@ namespace OC\Files\Storage\Wrapper{


class Jail extends Wrapper {
protected $rootPath;
public function getUnjailedPath(string $path): string {}
public function getUnjailedStorage(): IStorage {}
}
Expand Down

0 comments on commit 13f0d7d

Please sign in to comment.