Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7b0e6ae

Browse files
committed
Discard changes to tests/PHPStan/Rules/TooWideTypehints/TooWideFunctionReturnTypehintRuleTest.php
1 parent a40431e commit 7b0e6ae

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

‎tests/PHPStan/Rules/TooWideTypehints/TooWideFunctionReturnTypehintRuleTest.php‎

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /