aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/tests
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-09-16 11:08:50 +0200
committerGitHub <noreply@github.com>2024-09-16 11:08:50 +0200
commit816ffa469a479634f4192fb99d089787dcdccb63 (patch)
treeca9c59c85930457b8897ce7da11134bf2b50d11c /apps/dav/tests
parent8a328816333496a6ca507782d2b3b47bee470ba2 (diff)
parenteb8cec2b96adc1aff1c032fdb768b5b0c755a7a0 (diff)
downloadnextcloud-server-816ffa469a479634f4192fb99d089787dcdccb63.tar.gz
nextcloud-server-816ffa469a479634f4192fb99d089787dcdccb63.zip
Merge pull request #48044 from nextcloud/fix/cast-node-names-to-string
Diffstat (limited to 'apps/dav/tests')
-rw-r--r--apps/dav/tests/unit/Upload/AssemblyStreamTest.php4
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 89ae0bc1fea..a8517bf757c 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[