diff options
author | Faraz Samapoor <fsa@adlas.at> | 2023-07-17 21:18:56 +0330 |
---|---|---|
committer | Faraz Samapoor <f.samapoor@gmail.com> | 2023-09-28 09:02:10 +0330 |
commit | eab7818f0eff6d804258c30aa6ffd98ddb6ede03 (patch) | |
tree | cc8253de97a1b407060e396e741b1799de1cbb44 | |
parent | 32838d8f0a99393dafb1ba0844c55fc257cc7a84 (diff) | |
download | nextcloud-server-eab7818f0eff6d804258c30aa6ffd98ddb6ede03.tar.gz nextcloud-server-eab7818f0eff6d804258c30aa6ffd98ddb6ede03.zip |
Adds parameter type hints.
Co-authored-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Faraz Samapoor <fsa@adlas.at>
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
-rw-r--r-- | apps/files_external/lib/Command/Import.php | 2 | ||||
-rw-r--r-- | 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 534c0a2d9d8..a4976b21cb7 100644 --- a/apps/files_external/lib/Command/Import.php +++ b/apps/files_external/lib/Command/Import.php @@ -181,7 +181,7 @@ class Import extends Base { } } - 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 929e9d4f515..e4a33a99a92 100644 --- a/apps/files_external/lib/Command/ListCommand.php +++ b/apps/files_external/lib/Command/ListCommand.php @@ -242,7 +242,7 @@ class ListCommand extends Base { } } - protected function getStorageService($userId): StoragesService { + protected function getStorageService(string $userId): StoragesService { if (empty($userId)) { return $this->globalService; } |