Skip to content

Commit a86473b

Browse files
committed
test: cast node name to string
Signed-off-by: Anna Larch <[email protected]>
1 parent 3fe3f8d commit a86473b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/dav/tests/unit/Upload/AssemblyStreamTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ public function providesNodes() {
5757
$tonofnodes = [];
5858
$tonofdata = '';
5959
for ($i = 0; $i < 101; $i++) {
60-
$thisdata = rand(0, 100); // variable length and content
60+
$thisdata = random_int(0, 100); // variable length and content
6161
$tonofdata .= $thisdata;
62-
array_push($tonofnodes, $this->buildNode($i, $thisdata));
62+
$tonofnodes[] = $this->buildNode((string)$i, $thisdata);
6363
}
6464

6565
return[

0 commit comments

Comments
 (0)