Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/NodeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public function refreshNode()
*
* @return BelongsTo
*/
public function parent()
public function parent() : BelongsTo
{
return $this->belongsTo(get_class($this), $this->getParentIdName())
->setModel($this);
Expand All @@ -235,7 +235,7 @@ public function parent()
*
* @return HasMany
*/
public function children()
public function children() : HasMany
{
return $this->hasMany(get_class($this), $this->getParentIdName())
->setModel($this);
Expand Down