diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2023-02-07 14:08:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-07 14:08:08 +0100 |
commit | 4e969ef8a28c8e71c22f499b738b33e695e4de90 (patch) | |
tree | 31d873e986b63f09ef75cb3f85cc6c1a3c644acd /core | |
parent | 17ed023be26a6b6aa8f08f27d2faf4a32c2c5b24 (diff) | |
parent | 6e276ad2e18e713754e8b0d0dec4221912f2ca11 (diff) | |
download | nextcloud-server-4e969ef8a28c8e71c22f499b738b33e695e4de90.tar.gz nextcloud-server-4e969ef8a28c8e71c22f499b738b33e695e4de90.zip |
Merge pull request #36120 from nextcloud/enh/32bits-support
Fix 32bit support and add workflow for 32bits testing
Diffstat (limited to 'core')
-rw-r--r-- | core/Command/Log/File.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/Command/Log/File.php b/core/Command/Log/File.php index f2c77e20174..6d6e530fe9a 100644 --- a/core/Command/Log/File.php +++ b/core/Command/Log/File.php @@ -115,14 +115,12 @@ class File extends Command implements Completion\CompletionAwareInterface { } /** - * @param mixed $rotateSize * @throws \InvalidArgumentException */ - protected function validateRotateSize(&$rotateSize) { + protected function validateRotateSize(false|int|float $rotateSize): void { if ($rotateSize === false) { throw new \InvalidArgumentException('Error parsing log rotation file size'); } - $rotateSize = (int) $rotateSize; if ($rotateSize < 0) { throw new \InvalidArgumentException('Log rotation file size must be non-negative'); } |