From 545ef865a9260e015df6b62ac2b3660b01696d43 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 15 Dec 2022 16:57:52 +0100 Subject: [PATCH] Cleanup --- src/Stubs/common/Component/HttpFoundation/Request.stubphp | 8 +++++--- tests/unit/Symfony/TwigUtilsTest.php | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Stubs/common/Component/HttpFoundation/Request.stubphp b/src/Stubs/common/Component/HttpFoundation/Request.stubphp index 497773c..e0664ae 100644 --- a/src/Stubs/common/Component/HttpFoundation/Request.stubphp +++ b/src/Stubs/common/Component/HttpFoundation/Request.stubphp @@ -11,9 +11,11 @@ class Request * * @throws \LogicException * - * @psalm-template TAsResource as bool - * @psalm-param TAsResource $asResource - * @psalm-return (TAsResource is true ? resource : string) + * @psalm-return ( + * $asResource is true + * ? resource + * : string + * ) */ public function getContent($asResource = false) {} diff --git a/tests/unit/Symfony/TwigUtilsTest.php b/tests/unit/Symfony/TwigUtilsTest.php index b6d8280..5ad16a4 100644 --- a/tests/unit/Symfony/TwigUtilsTest.php +++ b/tests/unit/Symfony/TwigUtilsTest.php @@ -30,7 +30,7 @@ class TwigUtilsTest extends TestCase { $hasErrors = false; $code = '