Skip to content

Commit

Permalink
fix: fix breaking change.
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Oct 31, 2022
1 parent db60651 commit a44fe5d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Versionable.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ public function forceRemoveAllVersions(): void

public function shouldBeVersioning(): bool
{
// xxx: fix break change
if (method_exists($this, 'shouldVersioning')) {
return call_user_func([$this, 'shouldVersioning']);
}

return !empty($this->getVersionableAttributes());
}

Expand Down

0 comments on commit a44fe5d

Please sign in to comment.