diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-09-16 11:08:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-16 11:08:50 +0200 |
commit | 816ffa469a479634f4192fb99d089787dcdccb63 (patch) | |
tree | ca9c59c85930457b8897ce7da11134bf2b50d11c /apps/dav/tests | |
parent | 8a328816333496a6ca507782d2b3b47bee470ba2 (diff) | |
parent | eb8cec2b96adc1aff1c032fdb768b5b0c755a7a0 (diff) | |
download | nextcloud-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.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 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[ |