diff options
author | Robin Appelman <robin@icewind.nl> | 2022-02-10 14:15:07 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-03-04 16:28:11 +0100 |
commit | 7630d7a934c8e8036313824d95e5aa9de80dab96 (patch) | |
tree | 4fd8a8f406a17e9d0a48fb02fed84f88cbb01b18 /lib/private/Files/Mount/Manager.php | |
parent | 69a6efba477685f0f0c66c06d06ae27675acbf96 (diff) | |
download | nextcloud-server-7630d7a934c8e8036313824d95e5aa9de80dab96.tar.gz nextcloud-server-7630d7a934c8e8036313824d95e5aa9de80dab96.zip |
more type hints for ICachedMountInfo and IMountManager
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Mount/Manager.php')
-rw-r--r-- | lib/private/Files/Mount/Manager.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/private/Files/Mount/Manager.php b/lib/private/Files/Mount/Manager.php index 22b05b1f384..cfb008a94d1 100644 --- a/lib/private/Files/Mount/Manager.php +++ b/lib/private/Files/Mount/Manager.php @@ -35,13 +35,9 @@ use OCP\Files\Mount\IMountPoint; class Manager implements IMountManager { /** @var MountPoint[] */ - private $mounts = []; - - /** @var CappedMemoryCache */ - private $pathCache; - - /** @var CappedMemoryCache */ - private $inPathCache; + private array $mounts = []; + private CappedMemoryCache $pathCache; + private CappedMemoryCache $inPathCache; public function __construct() { $this->pathCache = new CappedMemoryCache(); @@ -99,7 +95,7 @@ class Manager implements IMountManager { * @param string $path * @return MountPoint|null */ - public function find(string $path) { + public function find(string $path): ?MountPoint { $this->setupForFind($path); $path = Filesystem::normalizePath($path); |