From ea6e47d654dbe2e9b1c0ecff8c42b17696abc492 Mon Sep 17 00:00:00 2001 From: Jonas Staudenmeir Date: Sun, 6 Oct 2024 13:30:07 +0200 Subject: [PATCH] Update src/Eloquent/Collection.php Co-authored-by: Sander Muller --- src/Eloquent/Collection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();