diff --git a/code/Extension/UpgradePolymorphicExtension.php b/code/Extension/UpgradePolymorphicExtension.php index 2221234..81dac23 100644 --- a/code/Extension/UpgradePolymorphicExtension.php +++ b/code/Extension/UpgradePolymorphicExtension.php @@ -47,7 +47,7 @@ class UpgradePolymorphicExtension extends DataExtension */ protected $defaultReplacement = UserDefinedForm::class; - public function requireDefaultRecords() + protected function onRequireDefaultRecords() { if (!UserDefinedForm::config()->get('upgrade_on_build')) { return;