]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(files_external): cast storage id int fix/external-storage-int 49218/head
authorskjnldsv <skjnldsv@protonmail.com>
Tue, 12 Nov 2024 09:28:01 +0000 (10:28 +0100)
committerskjnldsv <skjnldsv@protonmail.com>
Tue, 12 Nov 2024 09:28:01 +0000 (10:28 +0100)
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
apps/files_external/lib/Controller/StoragesController.php

index acd4446cde64ac5c2de374054f784d02cfc207f8..858143e50569c9bc667f5b26c1092230986d9c2b 100644 (file)
@@ -271,7 +271,7 @@ abstract class StoragesController extends Controller {
         *
         * @return DataResponse
         */
-       public function show($id, $testOnly = true) {
+       public function show(int $id, $testOnly = true) {
                try {
                        $storage = $this->service->getStorage($id);
 
@@ -303,7 +303,7 @@ abstract class StoragesController extends Controller {
         * @return DataResponse
         */
        #[PasswordConfirmationRequired]
-       public function destroy($id) {
+       public function destroy(int $id) {
                try {
                        $this->service->removeStorage($id);
                } catch (NotFoundException $e) {