From fbe5238d7fea9ecbb7ebfcb2c1d9cea13555b448 Mon Sep 17 00:00:00 2001 From: Josh Date: Fri, 26 Sep 2025 13:17:47 -0400 Subject: [PATCH] fix: review input Co-authored-by: Carl Schwan Signed-off-by: Josh --- apps/dav/lib/Connector/Sabre/QuotaPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/Connector/Sabre/QuotaPlugin.php b/apps/dav/lib/Connector/Sabre/QuotaPlugin.php index 83d45058914..76e840d705d 100644 --- a/apps/dav/lib/Connector/Sabre/QuotaPlugin.php +++ b/apps/dav/lib/Connector/Sabre/QuotaPlugin.php @@ -237,7 +237,7 @@ class QuotaPlugin extends \Sabre\DAV\ServerPlugin { * @throws InsufficientStorage * @return bool True if there is enough space, otherwise throws. */ - public function checkQuota(string $path, $length = null, bool $isDir = false): bool { + public function checkQuota(string $path, int|float|null $length = null, bool $isDir = false): bool { // Auto-detect length if not provided if ($length === null) { $length = $this->getLength();