Skip to content

Commit 5fe0dbe

Browse files
committed
fix php7
1 parent f764dd1 commit 5fe0dbe

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

tests/PHPStan/Rules/TooWideTypehints/TooWideFunctionReturnTypehintRuleTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,14 @@ public function testBug13384cPrePhp82(): void
119119
'Function Bug13384c\doFooPhpdoc2() never returns true so the return type can be changed to false.',
120120
100,
121121
],
122+
[
123+
'Function Bug13384c\returnsTrueUnionReturn() never returns int so it can be removed from the return type.',
124+
130,
125+
],
126+
[
127+
'Function Bug13384c\returnsTruePhpdocUnionReturn() never returns int so it can be removed from the return type.',
128+
137,
129+
],
122130
]);
123131
}
124132

tests/PHPStan/Rules/TooWideTypehints/data/bug-13384c.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php // lint >= 8.0
22

33
namespace Bug13384c;
44

0 commit comments

Comments
 (0)