Skip to content

Commit 3c9f983

Browse files
committed
Fixes #13: Unset $offset variable.
1 parent 7af87a7 commit 3c9f983

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Types/PointCollection.php

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

70-
array_splice($this->points, $offset, 0, [$point]);
70+
array_splice($this->points, $index, 0, [$point]);
7171
}
7272

7373
public function offsetExists($offset)

0 commit comments

Comments
 (0)