]> source.dussan.org Git - nextcloud-server.git/commitdiff
test: cast node name and data to string backport/48044/stable30 48072/head
authorAnna Larch <anna@nextcloud.com>
Sun, 15 Sep 2024 16:34:42 +0000 (18:34 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Mon, 16 Sep 2024 09:12:09 +0000 (09:12 +0000)
Signed-off-by: Anna Larch <anna@nextcloud.com>
apps/dav/tests/unit/Upload/AssemblyStreamTest.php

index 6c380fa3191ff33277c4e58e1ca90d0a10eaafb7..6d821976f4e38327bb6006a85d4b992cfd107a37 100644 (file)
@@ -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[