Skip to content

Commit 50d5b37

Browse files
authored
Merge branch refs/heads/1.10.x into 1.11.x
2 parents 91600a8 + a38f0f1 commit 50d5b37

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

tests/PHPStan/Rules/Methods/ReturnTypeRuleTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,4 +1014,9 @@ public function testBug10291(): void
10141014
$this->analyse([__DIR__ . '/data/bug-10291.php'], []);
10151015
}
10161016

1017+
public function testBug5008(): void
1018+
{
1019+
$this->analyse([__DIR__ . '/data/bug-5008.php'], []);
1020+
}
1021+
10171022
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php declare(strict_types = 1);
2+
3+
namespace Bug5008;
4+
5+
class SomeHelper
6+
{
7+
/**
8+
* @return -1|0|1
9+
*/
10+
public static function f(int $a, int $b): int
11+
{
12+
return $a <=> $b;
13+
}
14+
}

0 commit comments

Comments
 (0)