From d4afb638cb631a8982c08d51734534565868cd06 Mon Sep 17 00:00:00 2001 From: Brandon Date: Mon, 26 Feb 2024 16:33:24 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20the=20replacements=20prope?= =?UTF-8?q?rty=20in=20`acf:upgrade`=20(Fixes=20#194)?= 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 2bcbe691..461a11c6 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]})", ];