Skip to content

Commit fc08dc2

Browse files
skjnldsvbackportbot[bot]
authored andcommitted
fix(files_external): cast storage id int
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
1 parent 8d131e7 commit fc08dc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/files_external/lib/Controller/StoragesController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public function index() {
292292
*
293293
* @return DataResponse
294294
*/
295-
public function show($id, $testOnly = true) {
295+
public function show(int $id, $testOnly = true) {
296296
try {
297297
$storage = $this->service->getStorage($id);
298298

@@ -324,7 +324,7 @@ public function show($id, $testOnly = true) {
324324
* @return DataResponse
325325
*/
326326
#[PasswordConfirmationRequired]
327-
public function destroy($id) {
327+
public function destroy(int $id) {
328328
try {
329329
$this->service->removeStorage($id);
330330
} catch (NotFoundException $e) {

0 commit comments

Comments
 (0)