aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorCôme Chilliet <91878298+come-nc@users.noreply.github.com>2023-02-07 14:08:08 +0100
committerGitHub <noreply@github.com>2023-02-07 14:08:08 +0100
commit4e969ef8a28c8e71c22f499b738b33e695e4de90 (patch)
tree31d873e986b63f09ef75cb3f85cc6c1a3c644acd /core
parent17ed023be26a6b6aa8f08f27d2faf4a32c2c5b24 (diff)
parent6e276ad2e18e713754e8b0d0dec4221912f2ca11 (diff)
downloadnextcloud-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.php4
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');
}