@@ -79,8 +79,20 @@ public function testBug13384cPhp82(): void
7979 $ this ->reportNestedTooWideType = true ;
8080 $ this ->analyse ([__DIR__ . '/data/bug-13384c.php ' ], [
8181 [
82- 'Function Bug13384c\callsReturnsTrue() never returns false so the return type can be changed to true. ' ,
83- 115 ,
82+ 'Function Bug13384c\doFoo() never returns true so the return type can be changed to false. ' ,
83+ 5 ,
84+ ],
85+ [
86+ 'Function Bug13384c\doFoo2() never returns false so the return type can be changed to true. ' ,
87+ 9 ,
88+ ],
89+ [
90+ 'Function Bug13384c\doFooPhpdoc() never returns false so the return type can be changed to true. ' ,
91+ 93 ,
92+ ],
93+ [
94+ 'Function Bug13384c\doFooPhpdoc2() never returns true so the return type can be changed to false. ' ,
95+ 100 ,
8496 ],
8597 ]);
8698 }
@@ -90,7 +102,16 @@ public function testBug13384cPrePhp82(): void
90102 {
91103 $ this ->reportTooWideBool = true ;
92104 $ this ->reportNestedTooWideType = true ;
93- $ this ->analyse ([__DIR__ . '/data/bug-13384c.php ' ], []);
105+ $ this ->analyse ([__DIR__ . '/data/bug-13384c.php ' ], [
106+ [
107+ 'Function Bug13384c\doFooPhpdoc() never returns false so the return type can be changed to true. ' ,
108+ 93 ,
109+ ],
110+ [
111+ 'Function Bug13384c\doFooPhpdoc2() never returns true so the return type can be changed to false. ' ,
112+ 100 ,
113+ ],
114+ ]);
94115 }
95116
96117 public function testBug13384cOff (): void
0 commit comments