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

Commit 152214b

Browse files
authored
Merge pull request #59 from petermein/5.1
Fixed missing variable offset
2 parents 846828f + 63924b7 commit 152214b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Geometries/PointCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function insertPoint($index, Point $point)
6565
throw new InvalidArgumentException('$index is greater than the size of the array');
6666
}
6767

68-
array_splice($this->points, $offset, 0, [$point]);
68+
array_splice($this->points, $index, 0, [$point]);
6969
}
7070

7171
public function offsetExists($offset)

0 commit comments

Comments
 (0)