Skip to content

Commit

Permalink
refactor: proper phpdoc return type for getParent and getRoot
Browse files Browse the repository at this point in the history
  • Loading branch information
Gandhi11 committed May 11, 2022
1 parent 92017f4 commit e480bc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/NodeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public function hasAncestors(): bool
}

/**
* @return \Illuminate\Database\Eloquent\Model|\Exolnet\ClosureTable\Contracts\NodeInterface
* @return $this|null
*/
public function getParent()
{
Expand All @@ -213,7 +213,7 @@ public function hasParent(): bool
}

/**
* @return \Illuminate\Database\Eloquent\Model|\Exolnet\ClosureTable\Contracts\NodeInterface
* @return $this|null
*/
public function getRoot()
{
Expand Down

0 comments on commit e480bc3

Please sign in to comment.