From bb67e9ece22a143563db7576ea542c717a437a69 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 20 Nov 2025 18:55:01 +0100 Subject: [PATCH] fix: use interfaces instead of classes in Cache\Watcher type hints Signed-off-by: Robin Appelman --- lib/private/Files/Cache/Watcher.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/private/Files/Cache/Watcher.php b/lib/private/Files/Cache/Watcher.php index b3c65049525..f47822cbce9 100644 --- a/lib/private/Files/Cache/Watcher.php +++ b/lib/private/Files/Cache/Watcher.php @@ -7,8 +7,11 @@ */ namespace OC\Files\Cache; +use OCP\Files\Cache\ICache; use OCP\Files\Cache\ICacheEntry; +use OCP\Files\Cache\IScanner; use OCP\Files\Cache\IWatcher; +use OCP\Files\Storage\IStorage; /** * check the storage backends for updates and change the cache accordingly @@ -19,17 +22,17 @@ class Watcher implements IWatcher { protected $checkedPaths = []; /** - * @var \OC\Files\Storage\Storage $storage + * @var IStorage $storage */ protected $storage; /** - * @var Cache $cache + * @var ICache $cache */ protected $cache; /** - * @var Scanner $scanner ; + * @var IScanner $scanner ; */ protected $scanner; @@ -38,10 +41,7 @@ class Watcher implements IWatcher { protected ?string $checkFilter = null; - /** - * @param \OC\Files\Storage\Storage $storage - */ - public function __construct(\OC\Files\Storage\Storage $storage) { + public function __construct(IStorage $storage) { $this->storage = $storage; $this->cache = $storage->getCache(); $this->scanner = $storage->getScanner();