diff --git a/src/Console/UpgradeCommand.php b/src/Console/UpgradeCommand.php index 461a11c6..9f2c768c 100644 --- a/src/Console/UpgradeCommand.php +++ b/src/Console/UpgradeCommand.php @@ -42,7 +42,7 @@ public function handle() $this->replacements = [ 'use StoutLogic\\AcfBuilder\\FieldsBuilder;' => 'use Log1x\\AcfComposer\\Builder;', 'new FieldsBuilder(' => 'Builder::make(', - 'public function enqueue()' => 'public function enqueue($block)', + 'public function enqueue()' => 'public function enqueue($block = [])', '/->addFields\(\$this->get\((.*?)\)\)/' => fn ($match) => "->addPartial({$match[1]})", ];