diff options
author | Anna Larch <anna@nextcloud.com> | 2024-09-15 18:34:42 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-09-16 09:12:09 +0000 |
commit | 4474357b3ce9cdd729fb801fbda08cec94520c08 (patch) | |
tree | 1afade51a0a24e689b9d2e2a0ff730a5310a547a /apps/dav | |
parent | 32866bc7eefbc33722cbbee7a2550f2ac868da7b (diff) | |
download | nextcloud-server-4474357b3ce9cdd729fb801fbda08cec94520c08.tar.gz nextcloud-server-4474357b3ce9cdd729fb801fbda08cec94520c08.zip |
test: cast node name and data to stringbackport/48044/stable30
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/tests/unit/Upload/AssemblyStreamTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/tests/unit/Upload/AssemblyStreamTest.php b/apps/dav/tests/unit/Upload/AssemblyStreamTest.php index 6c380fa3191..6d821976f4e 100644 --- a/apps/dav/tests/unit/Upload/AssemblyStreamTest.php +++ b/apps/dav/tests/unit/Upload/AssemblyStreamTest.php @@ -57,9 +57,9 @@ class AssemblyStreamTest extends \Test\TestCase { $tonofnodes = []; $tonofdata = ""; for ($i = 0; $i < 101; $i++) { - $thisdata = rand(0, 100); // variable length and content + $thisdata = random_int(0, 100); // variable length and content $tonofdata .= $thisdata; - array_push($tonofnodes, $this->buildNode($i, $thisdata)); + $tonofnodes[] = $this->buildNode((string)$i, (string)$thisdata); } return[ |