diff --git a/src/Eloquent/Collection.php b/src/Eloquent/Collection.php index bf3d524..0208b8a 100644 --- a/src/Eloquent/Collection.php +++ b/src/Eloquent/Collection.php @@ -57,7 +57,7 @@ public function toTree($childrenRelation = 'children') * * @return static */ - public function loadTreePathRelations() + public function loadTreePathRelations(): self { $instance = $this->first();