mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-10 00:56:12 +01:00

[TASK] Prefer string casts over explictly calling __toString (#1136)

This commit is contained in:
Oliver Klee 2024-01-24 13:21:49 +01:00 committed by GitHub
parent c3f991862c
commit 94a494240e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);