From 2fc12e57e8e3775e2177656f0184a9943937f018 Mon Sep 17 00:00:00 2001 From: Brad <28307684+mad-briller@users.noreply.github.com> Date: Mon, 26 Feb 2024 13:18:36 +0000 Subject: [PATCH] Fix UselessCastRuleTest. --- tests/Rules/Cast/UselessCastRuleTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/Rules/Cast/UselessCastRuleTest.php b/tests/Rules/Cast/UselessCastRuleTest.php index c1affdde..c1487d31 100644 --- a/tests/Rules/Cast/UselessCastRuleTest.php +++ b/tests/Rules/Cast/UselessCastRuleTest.php @@ -44,6 +44,11 @@ public function testUselessCast(): void 'Casting to float something that\'s already float.', 27, ], + [ + 'Casting to string something that\'s already string.', + 39, + 'Because the type is coming from a PHPDoc, you can turn off this check by setting treatPhpDocTypesAsCertain: false in your %configurationFile%.', + ], [ 'Casting to string something that\'s already string.', 46,