From 860149920ec42f7ff7f2eb531709979e5b80c975 Mon Sep 17 00:00:00 2001 From: Brandon Date: Mon, 26 Feb 2024 16:50:38 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Pass=20empty=20array=20to=20`enq?= =?UTF-8?q?ueue()`'s=20`$block`=20when=20replacing=20with=20`acf:upgrade`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Console/UpgradeCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]})", ];