diff options
author | Louis Chemineau <louis@chmn.me> | 2021-12-02 21:06:04 +0300 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2021-12-02 21:06:04 +0300 |
commit | 045d14cb8b065f106eb5f1c17f212eea0dd79e9e (patch) | |
tree | c6a73d04698a6fd4a24cd5519cbf62afaf768a65 /lib/Command/Scan.php | |
parent | fcdb689284b43a2a23397f2971bd89f5c99ccf0c (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.php | 2 |
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']); |