Skip to content

Commit

Permalink
Fixed missing variable offset
Browse files Browse the repository at this point in the history
  • Loading branch information
petermein committed Aug 11, 2016
1 parent 846828f commit 63924b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Geometries/PointCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 63924b7

Please sign in to comment.