Skip to content

Commit 2b0a5d9

Browse files
committed
removed return types for uploads
1 parent cc7eb4b commit 2b0a5d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Resources/Files.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function download(int $id, string $path = '', bool $storeDownload = false
3636
];
3737
}
3838

39-
public function upload(string $filepath, string $name, int $parent = 0): array
39+
public function upload(string $filepath, string $name, int $parent = 0)
4040
{
4141
$url = 'content';
4242

@@ -51,7 +51,7 @@ public function upload(string $filepath, string $name, int $parent = 0): array
5151
return self::uploadRun($url, $params);
5252
}
5353

54-
public function uploadRevision(int $file_id, string $filepath, string $name, string $newname = null): array
54+
public function uploadRevision(int $file_id, string $filepath, string $name, string $newname = null)
5555
{
5656
$url = $file_id.'/content';
5757

@@ -69,7 +69,7 @@ public function uploadRevision(int $file_id, string $filepath, string $name, str
6969
return self::uploadRun($url, $params);
7070
}
7171

72-
private static function uploadRun(string $endpoint, array $params): array
72+
private static function uploadRun(string $endpoint, array $params)
7373
{
7474
$url = 'https://upload.box.com/api/2.0/files/'.$endpoint;
7575
$headers = ["Authorization: Bearer ".Box::getAccessToken()];

0 commit comments

Comments
 (0)