Skip to content

Unset $offset variable #13

Closed
Closed
@antonkomarev

Description

@antonkomarev

public function insertPoint($index, Point $point)
{
if (count($this->points) - 1 < $index) {
throw new InvalidArgumentException('$index is greater than the size of the array');
}
array_splice($this->points, $offset, 0, [$point]);
}

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions