From 3be1217c046eca725b14348b73d36c7b8d625d44 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Mon, 20 Jun 2022 11:46:13 -0300 Subject: [PATCH] Follow the most common pattern used in project ``` git grep strval|wc -l 32 git grep "(string)"|wc -l 481 ``` Signed-off-by: Vitor Mattos --- tests/lib/Comments/ManagerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/lib/Comments/ManagerTest.php b/tests/lib/Comments/ManagerTest.php index 29e08b55e10..7c6971476c7 100644 --- a/tests/lib/Comments/ManagerTest.php +++ b/tests/lib/Comments/ManagerTest.php @@ -722,7 +722,7 @@ class ManagerTest extends TestCase { ); // just to make sure they are really set, with correct actor data - $comment = $manager->get(strval($ids[1])); + $comment = $manager->get((string) $ids[1]); $this->assertSame($comment->getObjectType(), 'files'); $this->assertSame($comment->getObjectId(), 'file64'); @@ -733,7 +733,7 @@ class ManagerTest extends TestCase { $exists = 0; foreach ($ids as $id) { try { - $manager->get(strval($id)); + $manager->get((string) $id); $exists++; } catch (NotFoundException $e) { $deleted++; -- 2.39.5