diff --git a/lib/File.php b/lib/File.php index 9a2d8fb..7e1878e 100644 --- a/lib/File.php +++ b/lib/File.php @@ -174,7 +174,7 @@ public function upload(string $path, int $folderId = 0, string $filename = null) * @throws Exception * @noinspection PhpUnused */ - public function delete(int $fileId): stdClass + public function delete(int $fileId): stdClass|bool { $response = $this->request->get("deletefile", array("fileid" => $fileId)); @@ -302,4 +302,4 @@ private function _write(string $content, ?array $params): void { $this->request->put("upload_write", $content, $params); } -} \ No newline at end of file +}