mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
fix: review input
Co-authored-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
parent
cc96a16df5
commit
fbe5238d7f
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue