From 2eca305c7e4f23b584e3df0b7a3deace221dd9ae Mon Sep 17 00:00:00 2001 From: Josh Date: Mon, 12 Jan 2026 11:04:50 -0500 Subject: [PATCH] test(comments): Fix cast to match typing in ManagerTest Signed-off-by: Josh --- tests/lib/Comments/ManagerTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/lib/Comments/ManagerTest.php b/tests/lib/Comments/ManagerTest.php index bdf29597e88..762933fb254 100644 --- a/tests/lib/Comments/ManagerTest.php +++ b/tests/lib/Comments/ManagerTest.php @@ -360,11 +360,11 @@ class ManagerTest extends TestCase { // 2 comments for 1112 with no read marker // 1 comment for 1113 before read marker // 1 comment for 1114 with no read marker - $this->addDatabaseEntry('0', '0', null, null, $fileIds[1]); + $this->addDatabaseEntry('0', '0', null, null, (string)$fileIds[1]); for ($i = 0; $i < 4; $i++) { - $this->addDatabaseEntry('0', '0', null, null, $fileIds[$i]); + $this->addDatabaseEntry('0', '0', null, null, (string)$fileIds[$i]); } - $this->addDatabaseEntry('0', '0', (new \DateTime())->modify('-2 days'), null, $fileIds[0]); + $this->addDatabaseEntry('0', '0', (new \DateTime())->modify('-2 days'), null, (string)$fileIds[0]); /** @var IUser|\PHPUnit\Framework\MockObject\MockObject $user */ $user = $this->createMock(IUser::class); $user->expects($this->any())