From 6a1857506996d79ee2befb1b12d0f50ea9c6021f Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 4 Sep 2024 10:16:51 +0200 Subject: [PATCH] Fix type --- src/DataFixtures/DownloadFixtures.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DataFixtures/DownloadFixtures.php b/src/DataFixtures/DownloadFixtures.php index 4a02c3171..03e835446 100644 --- a/src/DataFixtures/DownloadFixtures.php +++ b/src/DataFixtures/DownloadFixtures.php @@ -199,8 +199,8 @@ private function populateGlobalStats(): void for ($major = 7; $major <= 8; $major++) { for ($minor = 0; $minor <= 4; $minor++) { $phpMinorPlatform = $major.'.'.$minor; - $this->redis->hset('php:'.$phpMinorPlatform.':days', $day, $downloads + random_int(0, $major * $minor * 5)); - $this->redis->hset('php:'.$phpMinorPlatform.':months', $month, $downloads + random_int(0, $major * $minor * 5)); + $this->redis->hset('php:'.$phpMinorPlatform.':days', $day, (string) ($downloads + random_int(0, $major * $minor * 5))); + $this->redis->hset('php:'.$phpMinorPlatform.':months', $month, (string) ($downloads + random_int(0, $major * $minor * 5))); } }