Skip to content
This repository was archived by the owner on Sep 1, 2023. It is now read-only.

Commit f207250

Browse files
committed
Compatibility fix for VecLikeArraySpec on 4.0
1 parent 6ed8a9f commit f207250

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TypeSpec/__Private/VecLikeArraySpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ function(): \Generator<int, int, void> {
5252
return Vec\map_with_key(
5353
$value,
5454
($k, $inner) ==> {
55-
$i = $counter->current();
5655
$counter->next();
56+
$i = $counter->current();
5757
if ($k !== $i) {
5858
throw
5959
IncorrectTypeException::withValue($this->getTrace(), 'key '.$i, $k);

0 commit comments

Comments
 (0)