From 94a494240e79620684f927d24e60846ff015dfbf Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Wed, 24 Jan 2024 13:21:49 +0100 Subject: [PATCH] [TASK] Prefer string casts over explictly calling `__toString` (#1136) --- Tests/Functional/Controller/TeaControllerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Functional/Controller/TeaControllerTest.php b/Tests/Functional/Controller/TeaControllerTest.php index d144168..219c4ed 100644 --- a/Tests/Functional/Controller/TeaControllerTest.php +++ b/Tests/Functional/Controller/TeaControllerTest.php @@ -44,7 +44,7 @@ final class TeaControllerTest extends FunctionalTestCase $request = new InternalRequest(); $request = $request->withPageId(1); - $html = $this->executeFrontendSubRequest($request)->getBody()->__toString(); + $html = (string)$this->executeFrontendSubRequest($request)->getBody(); self::assertStringContainsString('Godesberger Burgtee', $html); self::assertStringContainsString('Oolong', $html);