Skip to content

Commit

Permalink
fix performInsert args
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsuguya committed Mar 10, 2023
1 parent e62eafe commit 8989d93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Eloquent/SpatialTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ protected function newBaseQueryBuilder()
);
}

protected function performInsert(EloquentBuilder $query, array $options = [])
protected function performInsert(EloquentBuilder $query)
{
foreach ($this->attributes as $key => $value) {
if ($value instanceof GeometryInterface) {
Expand All @@ -90,7 +90,7 @@ protected function performInsert(EloquentBuilder $query, array $options = [])
}
}

$insert = parent::performInsert($query, $options);
$insert = parent::performInsert($query);

foreach ($this->geometries as $key => $value) {
$this->attributes[$key] = $value; //Retrieve the geometry objects so they can be used in the model
Expand Down

0 comments on commit 8989d93

Please sign in to comment.