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

index 8ad7f1815290ebeb055d1ef2f90383ae934e1ca3..145c88594761ff72bec3cba8ce762402bc99d135 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) {