Skip to content

Commit f4a22bc

Browse files
committed
Specify integer offsets in prefix mutation regression
1 parent ad373c1 commit f4a22bc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎tests/PHPStan/Rules/DeadCode/data/bug-15411.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ function previousAssignedValue(int $count): int
2828
return $value;
2929
}
3030

31+
/** @param array{count: int} $counts */
3132
function nextOffsetValue(array $counts): int
3233
{
3334
return ++$counts['count'];
3435
}
3536

37+
/** @param array{count: int} $counts */
3638
function previousOffsetValue(array $counts): int
3739
{
3840
return --$counts['count'];

0 commit comments

Comments
 (0)