Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/groupfolders.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2021-12-20 18:56:00 +0300
committerCarl Schwan <carl@carlschwan.eu>2021-12-21 18:59:05 +0300
commit96491253c7e911decec81562bda8ae1c324fc59b (patch)
tree67e8b00c261078c947bf7776cd7b6c7f600afcf3 /lib/Command/Scan.php
parent1f3c3c200236be6ceab23188d171879ed02c6352 (diff)
Improve psaml add stub implementation
This allows to now run psalm in many new parts of the codebase Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'lib/Command/Scan.php')
-rw-r--r--lib/Command/Scan.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Command/Scan.php b/lib/Command/Scan.php
index c6d51f55..9aaa069e 100644
--- a/lib/Command/Scan.php
+++ b/lib/Command/Scan.php
@@ -32,6 +32,7 @@ use Symfony\Component\Console\Helper\Table;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
+use OCP\Files\Cache\IScanner;
class Scan extends FolderCommand {
private $foldersCounter = 0;
@@ -45,12 +46,14 @@ class Scan extends FolderCommand {
parent::configure();
}
+ /** @psalm-suppress UndefinedInterfaceMethod setUseTransactions is defined in private class */
protected function execute(InputInterface $input, OutputInterface $output) {
$folder = $this->getFolder($input, $output);
if ($folder === false) {
return -1;
}
$mount = $this->mountProvider->getMount($folder['id'], '/' . $folder['mount_point'], Constants::PERMISSION_ALL, $folder['quota']);
+ /** @var IScanner&\OC\Hooks\BasicEmitter $scanner */
$scanner = $mount->getStorage()->getScanner();
if ($scanner instanceof NoopScanner) {