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,