diff options
author | Robin Appelman <robin@icewind.nl> | 2021-03-26 15:51:07 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2021-06-16 13:56:26 +0200 |
commit | 94f0c10ec6221465f8126703c71ad694ef8fa287 (patch) | |
tree | 0c3aad27d36c8d26e0ac4aed5c626c526605a064 /apps/files_external/lib/Command | |
parent | 381aaeb0ccb309a4d29bf32b1fa384617fe1629a (diff) | |
download | nextcloud-server-94f0c10ec6221465f8126703c71ad694ef8fa287.tar.gz nextcloud-server-94f0c10ec6221465f8126703c71ad694ef8fa287.zip |
fix some types
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external/lib/Command')
-rw-r--r-- | apps/files_external/lib/Command/Create.php | 2 | ||||
-rw-r--r-- | apps/files_external/lib/Command/Import.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/Command/Create.php b/apps/files_external/lib/Command/Create.php index 3fe9e71b17a..99991b893cd 100644 --- a/apps/files_external/lib/Command/Create.php +++ b/apps/files_external/lib/Command/Create.php @@ -119,7 +119,7 @@ class Create extends Base { } protected function execute(InputInterface $input, OutputInterface $output): int { - $user = $input->getOption('user'); + $user = (string) $input->getOption('user'); $mountPoint = $input->getArgument('mount_point'); $storageIdentifier = $input->getArgument('storage_backend'); $authIdentifier = $input->getArgument('authentication_backend'); diff --git a/apps/files_external/lib/Command/Import.php b/apps/files_external/lib/Command/Import.php index 5d9a6893353..53ae0d7c5bf 100644 --- a/apps/files_external/lib/Command/Import.php +++ b/apps/files_external/lib/Command/Import.php @@ -107,7 +107,7 @@ class Import extends Base { } protected function execute(InputInterface $input, OutputInterface $output): int { - $user = $input->getOption('user'); + $user = (string) $input->getOption('user'); $path = $input->getArgument('path'); if ($path === '-') { $json = file_get_contents('php://stdin'); |