]> source.dussan.org Git - nextcloud-server.git/commitdiff
Follow the most common pattern used in project 32863/head
authorVitor Mattos <vitor@php.rio>
Mon, 20 Jun 2022 14:46:13 +0000 (11:46 -0300)
committerVitor Mattos <vitor@php.rio>
Mon, 20 Jun 2022 14:46:13 +0000 (11:46 -0300)
```
git grep strval|wc -l
32
git grep "(string)"|wc -l
481
```

Signed-off-by: Vitor Mattos <vitor@php.rio>
tests/lib/Comments/ManagerTest.php

index 29e08b55e10342f6947376a34d638f4fada8b3b1..7c6971476c7113ef6d11761eee8d5d8c3d2da726 100644 (file)
@@ -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++;