Skip to content

Commit 719af7e

Browse files
committed
Fixes #13: Unset $offset variable.
(cherry picked from commit 3c9f983)
1 parent 3d2ae93 commit 719af7e

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)