Skip to content

Commit b89312a

Browse files
committed
Fixed
1 parent 66423b0 commit b89312a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313

1414
"require": {
1515
"php": ">=5.5.9",
16-
"illuminate/support": "5.0 - 5.5",
17-
"illuminate/database": "5.0 - 5.5",
18-
"illuminate/events": "5.0 - 5.5"
16+
"illuminate/support": "5.2 - 5.5",
17+
"illuminate/database": "5.2 - 5.5",
18+
"illuminate/events": "5.2 - 5.5"
1919
},
2020

2121
"autoload": {

src/QueryBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ public function fixTree($root = null)
857857
$dictionary = $this->model
858858
->newNestedSetQuery()
859859
->when($root, function (self $query) use ($root) {
860-
$query->whereDescendantOf($root);
860+
return $query->whereDescendantOf($root);
861861
})
862862
->defaultOrder()
863863
->get($columns)
@@ -969,7 +969,7 @@ public function rebuildTree(array $data, $delete = false, $root = null)
969969

970970
$existing = $this
971971
->when($root, function (self $query) use ($root) {
972-
$query->whereDescendantOf($root);
972+
return $query->whereDescendantOf($root);
973973
})
974974
->get()
975975
->getDictionary();

0 commit comments

Comments
 (0)