Skip to content

Commit 4720c39

Browse files
committed
fix: use interfaces instead of classes in Cache\Watcher type hints
Signed-off-by: Robin Appelman <[email protected]>
1 parent 5c625b7 commit 4720c39

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/private/Files/Cache/Watcher.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
*/
88
namespace OC\Files\Cache;
99

10+
use OCP\Files\Cache\ICache;
1011
use OCP\Files\Cache\ICacheEntry;
12+
use OCP\Files\Cache\IScanner;
1113
use OCP\Files\Cache\IWatcher;
14+
use OCP\Files\Storage\IStorage;
1215

1316
/**
1417
* check the storage backends for updates and change the cache accordingly
@@ -19,17 +22,17 @@ class Watcher implements IWatcher {
1922
protected $checkedPaths = [];
2023

2124
/**
22-
* @var \OC\Files\Storage\Storage $storage
25+
* @var IStorage $storage
2326
*/
2427
protected $storage;
2528

2629
/**
27-
* @var Cache $cache
30+
* @var ICache $cache
2831
*/
2932
protected $cache;
3033

3134
/**
32-
* @var Scanner $scanner ;
35+
* @var IScanner $scanner ;
3336
*/
3437
protected $scanner;
3538

@@ -38,10 +41,7 @@ class Watcher implements IWatcher {
3841

3942
protected ?string $checkFilter = null;
4043

41-
/**
42-
* @param \OC\Files\Storage\Storage $storage
43-
*/
44-
public function __construct(\OC\Files\Storage\Storage $storage) {
44+
public function __construct(IStorage $storage) {
4545
$this->storage = $storage;
4646
$this->cache = $storage->getCache();
4747
$this->scanner = $storage->getScanner();

0 commit comments

Comments
 (0)