Skip to content

Commit a44fe5d

Browse files
committed
fix: fix breaking change.
1 parent db60651 commit a44fe5d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Versionable.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@ public function forceRemoveAllVersions(): void
178178

179179
public function shouldBeVersioning(): bool
180180
{
181+
// xxx: fix break change
182+
if (method_exists($this, 'shouldVersioning')) {
183+
return call_user_func([$this, 'shouldVersioning']);
184+
}
185+
181186
return !empty($this->getVersionableAttributes());
182187
}
183188

0 commit comments

Comments
 (0)