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 54e6068 commit 3ade5f7
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 @@ -123,7 +123,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 3ade5f7

Please sign in to comment.