Skip to content

Commit

Permalink
🎨 Remove useless upgrade replacement patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Feb 27, 2024
1 parent 50c647b commit d662c80
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Console/UpgradeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,10 @@ public function handle()

$this->replacements = [
'use StoutLogic\\AcfBuilder\\FieldsBuilder;' => 'use Log1x\\AcfComposer\\Builder;',
'use Roots\\Acorn\\Application;' => 'use Log1x\\AcfComposer\\AcfComposer;',
'new FieldsBuilder(' => 'Builder::make(',
'public function enqueue($block)' => 'public function assets($block)',
'public function enqueue($block = [])' => 'public function assets($block)',
'public function enqueue()' => 'public function assets($block)',
'public function __construct(Application $app)' => 'public function __construct(AcfComposer $composer)',
'/->addFields\(\$this->get\((.*?)\)\)/' => fn ($match) => "->addPartial({$match[1]})",
];

Expand Down

0 comments on commit d662c80

Please sign in to comment.