From eb8cec2b96adc1aff1c032fdb768b5b0c755a7a0 Mon Sep 17 00:00:00 2001 From: Anna Larch Date: Sun, 15 Sep 2024 18:34:42 +0200 Subject: [PATCH] test: cast node name and data to string Signed-off-by: Anna Larch --- apps/dav/tests/unit/Upload/AssemblyStreamTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/dav/tests/unit/Upload/AssemblyStreamTest.php b/apps/dav/tests/unit/Upload/AssemblyStreamTest.php index 89ae0bc1fead2..a8517bf757c78 100644 --- a/apps/dav/tests/unit/Upload/AssemblyStreamTest.php +++ b/apps/dav/tests/unit/Upload/AssemblyStreamTest.php @@ -57,9 +57,9 @@ public function providesNodes() { $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[