From 9130beda1b17a75ff576cbcad62ad2a8f24fb041 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Tue, 24 Feb 2026 15:19:31 +0100 Subject: [PATCH] fix: Ensure userId is string Using a numeric value like "100" as array-key automatically casts it to an integer. The type cast ensures the userId is a string as required by printRecord. Signed-off-by: Daniel Kesselberg --- lib/Reports/AllUsers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Reports/AllUsers.php b/lib/Reports/AllUsers.php index e0b510e..6d18158 100644 --- a/lib/Reports/AllUsers.php +++ b/lib/Reports/AllUsers.php @@ -115,7 +115,7 @@ public function printReport(InputInterface $input, OutputInterface $output, Outp $progress->clear(); foreach ($this->reports as $userId => $report) { - $this->printRecord($input, $streamOutput, $userId, $report); + $this->printRecord($input, $streamOutput, (string)$userId, $report); } }