Skip to content

Commit 8b8e476

Browse files
committed
fix(files_external): cast storage id int
Signed-off-by: skjnldsv <[email protected]>
1 parent f47d1e9 commit 8b8e476

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
@@ -271,7 +271,7 @@ public function index() {
271271
*
272272
* @return DataResponse
273273
*/
274-
public function show($id, $testOnly = true) {
274+
public function show(int $id, $testOnly = true) {
275275
try {
276276
$storage = $this->service->getStorage($id);
277277

@@ -303,7 +303,7 @@ public function show($id, $testOnly = true) {
303303
* @return DataResponse
304304
*/
305305
#[PasswordConfirmationRequired]
306-
public function destroy($id) {
306+
public function destroy(int $id) {
307307
try {
308308
$this->service->removeStorage($id);
309309
} catch (NotFoundException $e) {

0 commit comments

Comments
 (0)