Skip to content

Commit

Permalink
fix: fix typo #82
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Jul 15, 2024
1 parent 059d042 commit ae815f0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Versionable.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,15 @@ public function getVersion(int $id): ?Version
return $this->versions()->find($id);
}

/**
* @deprecated use `getTrashedVersions` instead
*/
public function getThrashedVersions()
{
return $this->getTrashedVersions();
}

public function getTrashedVersions()
{
return $this->versions()->onlyTrashed()->get();
}
Expand Down

0 comments on commit ae815f0

Please sign in to comment.