Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit e0ea7ae

Browse files
authored
Fix bug that causes other packages not to work
The Eloquent Model's `setRawAttributes` method returns `this`, which allows it to be chained with other methods. This package currently does not return anything from the overriden method, which causes other packages (such as [spatie/laravel-activitylog](https://github.com/spatie/laravel-activitylog) to break. This fix returns the result of `parent::setRawAttributes` to resolve this issue.
1 parent 907d33d commit e0ea7ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Eloquent/PostgisTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function setRawAttributes(array $attributes, $sync = false)
5252
}
5353
}
5454

55-
parent::setRawAttributes($attributes, $sync);
55+
return parent::setRawAttributes($attributes, $sync);
5656
}
5757

5858
public function getPostgisFields()

0 commit comments

Comments
 (0)