From eab7818f0eff6d804258c30aa6ffd98ddb6ede03 Mon Sep 17 00:00:00 2001 From: Faraz Samapoor Date: Mon, 17 Jul 2023 21:18:56 +0330 Subject: [PATCH] Adds parameter type hints. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Côme Chilliet Signed-off-by: Faraz Samapoor Signed-off-by: Faraz Samapoor --- apps/files_external/lib/Command/Import.php | 2 +- apps/files_external/lib/Command/ListCommand.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/files_external/lib/Command/Import.php b/apps/files_external/lib/Command/Import.php index 534c0a2d9d867..a4976b21cb7b3 100644 --- a/apps/files_external/lib/Command/Import.php +++ b/apps/files_external/lib/Command/Import.php @@ -181,7 +181,7 @@ private function getBackendByClass(string $className) { } } - protected function getStorageService($userId): StoragesService { + protected function getStorageService(string $userId): StoragesService { if (empty($userId)) { return $this->globalService; } diff --git a/apps/files_external/lib/Command/ListCommand.php b/apps/files_external/lib/Command/ListCommand.php index 929e9d4f5151c..e4a33a99a922d 100644 --- a/apps/files_external/lib/Command/ListCommand.php +++ b/apps/files_external/lib/Command/ListCommand.php @@ -242,7 +242,7 @@ public function listMounts($userId, array $mounts, InputInterface $input, Output } } - protected function getStorageService($userId): StoragesService { + protected function getStorageService(string $userId): StoragesService { if (empty($userId)) { return $this->globalService; }