Skip to content

Commit 2fc12e5

Browse files
mad-brillerondrejmirtes
authored andcommitted
Fix UselessCastRuleTest.
1 parent 7a50e96 commit 2fc12e5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: tests/Rules/Cast/UselessCastRuleTest.php

+5
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ public function testUselessCast(): void
4444
'Casting to float something that\'s already float.',
4545
27,
4646
],
47+
[
48+
'Casting to string something that\'s already string.',
49+
39,
50+
'Because the type is coming from a PHPDoc, you can turn off this check by setting <fg=cyan>treatPhpDocTypesAsCertain: false</> in your <fg=cyan>%configurationFile%</>.',
51+
],
4752
[
4853
'Casting to string something that\'s already string.',
4954
46,

0 commit comments

Comments
 (0)