Skip to content

Commit 0d912fb

Browse files
committed
Update bug-12933.php
1 parent a050770 commit 0d912fb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/PHPStan/Analyser/nsrt/bug-12933.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,13 @@ public function issetNarrowsIntRange(int $index, string $name): void
3636
assert(isset($this->list[$index]));
3737
assertType('int<0, 5>', $index);
3838
}
39+
40+
/**
41+
* @param int<5, 15> $index
42+
*/
43+
public function issetNotWidensIntRange(int $index, string $name): void
44+
{
45+
assert(isset($this->list[$index]));
46+
assertType('int<5, 15>', $index);
47+
}
3948
}

0 commit comments

Comments
 (0)