Skip to content

Commit 3d33475

Browse files
mad-brillerondrejmirtes
authored andcommitted
Fix UselessCastRuleTest.
1 parent 2bc3967 commit 3d33475

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/Rules/Cast/UselessCastRuleTest.php

+5
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ public function testUselessCast(): void
4747
'Casting to float something that\'s already float.',
4848
27,
4949
],
50+
[
51+
'Casting to string something that\'s already string.',
52+
39,
53+
'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%</>.',
54+
],
5055
[
5156
'Casting to string something that\'s already string.',
5257
46,

0 commit comments

Comments
 (0)