]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(files_external): cast storage id int backport/49218/stable30 49222/head
authorskjnldsv <skjnldsv@protonmail.com>
Tue, 12 Nov 2024 09:28:01 +0000 (10:28 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Tue, 12 Nov 2024 09:55:21 +0000 (09:55 +0000)
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
apps/files_external/lib/Controller/StoragesController.php

index bc660cd580cc6fbc1b66b803f1247e144c4df99c..802f733b228bd62297feba35099f6772d8ad2e1f 100644 (file)
@@ -270,7 +270,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);
 
@@ -302,7 +302,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) {