From 63924b743c932f6c21ffdd852a33245891702481 Mon Sep 17 00:00:00 2001 From: Peter Mein Date: Thu, 11 Aug 2016 11:05:34 +0200 Subject: [PATCH] Fixed missing variable offset --- src/Geometries/PointCollection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Geometries/PointCollection.php b/src/Geometries/PointCollection.php index b0aed6f..3381aa9 100644 --- a/src/Geometries/PointCollection.php +++ b/src/Geometries/PointCollection.php @@ -65,7 +65,7 @@ public function insertPoint($index, Point $point) throw new InvalidArgumentException('$index is greater than the size of the array'); } - array_splice($this->points, $offset, 0, [$point]); + array_splice($this->points, $index, 0, [$point]); } public function offsetExists($offset)