]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(files_external): cast storage id int backport/49218/stable28 49220/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:52:01 +0000 (09:52 +0000)
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
apps/files_external/lib/Controller/StoragesController.php

index 34ff9682ee6e03aa504ed507b40208f63897eb5e..b18e99f3a47a354c15f4d8bf7693259d54ce86cb 100644 (file)
@@ -292,7 +292,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);
 
@@ -324,7 +324,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) {