Skip to content

Commit f148e50

Browse files
committed
default value of childrenName
1 parent e7b2f44 commit f148e50

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/NestableCollection.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@ class NestableCollection extends Collection
1919
private $parentColumn;
2020
private $removeItemsWithMissingAncestor = true;
2121
private $indentChars = '    ';
22-
private $childrenName;
22+
private $childrenName = 'items';
2323

2424
public function __construct($items = [])
2525
{
2626
parent::__construct($items);
2727
$this->parentColumn = 'parent_id';
2828
$this->total = count($items);
29-
$this->childrenName = 'items';
3029
}
3130

3231
public function childrenName($name)

0 commit comments

Comments
 (0)