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:
authorLouis Chemineau <louis@chmn.me>2021-12-02 21:06:04 +0300
committerLouis Chemineau <louis@chmn.me>2021-12-02 21:06:04 +0300
commit045d14cb8b065f106eb5f1c17f212eea0dd79e9e (patch)
treec6a73d04698a6fd4a24cd5519cbf62afaf768a65 /lib/Command/Scan.php
parentfcdb689284b43a2a23397f2971bd89f5c99ccf0c (diff)
Cast argument from string to int
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'lib/Command/Scan.php')
-rw-r--r--lib/Command/Scan.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Command/Scan.php b/lib/Command/Scan.php
index cc46d55b..8fc1de07 100644
--- a/lib/Command/Scan.php
+++ b/lib/Command/Scan.php
@@ -55,7 +55,7 @@ class Scan extends Base {
}
protected function execute(InputInterface $input, OutputInterface $output) {
- $folderId = $input->getArgument('folder_id');
+ $folderId = (int)$input->getArgument('folder_id');
$folder = $this->folderManager->getFolder($folderId, $this->rootFolder->getMountPoint()->getNumericStorageId());
if ($folder) {
$mount = $this->mountProvider->getMount($folder['id'], '/' . $folder['mount_point'], Constants::PERMISSION_ALL, $folder['quota']);