diff options
author | Vitor Mattos <vitor@php.rio> | 2022-06-20 11:46:13 -0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2022-06-20 11:46:13 -0300 |
commit | 3be1217c046eca725b14348b73d36c7b8d625d44 (patch) | |
tree | 283c5069c53445240943bdc7901e3be90ee172ca | |
parent | d7e7a4d333cbf5f3551555df3e6b9a79a21442fd (diff) | |
download | nextcloud-server-3be1217c046eca725b14348b73d36c7b8d625d44.tar.gz nextcloud-server-3be1217c046eca725b14348b73d36c7b8d625d44.zip |
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 <vitor@php.rio>
-rw-r--r-- | tests/lib/Comments/ManagerTest.php | 4 |
1 files 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++; |