From a1cdfd6454c62e0dac1cd8062dd544c9d82d3097 Mon Sep 17 00:00:00 2001 From: "Lucas G. Bueno" Date: Fri, 5 Sep 2025 16:19:37 -0300 Subject: [PATCH] fix return type on bool cases --- lib/File.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}