aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Command
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-10-02 23:58:31 +0200
committerJoas Schilling <coding@schilljs.com>2024-10-07 12:11:27 +0200
commitc109ae9437403c5bd17834c2ee53507c1d1f2ad2 (patch)
treece200b2883c129b58cb2b5613c2526b94ae69796 /apps/files_external/lib/Command
parentc0ffe3942195402589815bb7e13b6d9070429682 (diff)
downloadnextcloud-server-c109ae9437403c5bd17834c2ee53507c1d1f2ad2.tar.gz
nextcloud-server-c109ae9437403c5bd17834c2ee53507c1d1f2ad2.zip
ci: Fix psalm by typing the QuestionHelper
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_external/lib/Command')
-rw-r--r--apps/files_external/lib/Command/Delete.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_external/lib/Command/Delete.php b/apps/files_external/lib/Command/Delete.php
index 61e974ff589..3e6ccf751a8 100644
--- a/apps/files_external/lib/Command/Delete.php
+++ b/apps/files_external/lib/Command/Delete.php
@@ -13,6 +13,7 @@ use OCA\Files_External\Service\UserStoragesService;
use OCP\AppFramework\Http;
use OCP\IUserManager;
use OCP\IUserSession;
+use Symfony\Component\Console\Helper\QuestionHelper;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
@@ -26,6 +27,7 @@ class Delete extends Base {
protected UserStoragesService $userService,
protected IUserSession $userSession,
protected IUserManager $userManager,
+ protected QuestionHelper $questionHelper,
) {
parent::__construct();
}
@@ -64,6 +66,7 @@ class Delete extends Base {
$listInput->setOption('output', $input->getOption('output'));
$listCommand->listMounts(null, [$mount], $listInput, $output);
+ /** @var QuestionHelper $questionHelper */
$questionHelper = $this->getHelper('question');
$question = new ConfirmationQuestion('Delete this mount? [y/N] ', false);