Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
actually add --preg-with-matches migration
Browse files Browse the repository at this point in the history
  • Loading branch information
jjergus committed Aug 30, 2019
1 parent de5cffc commit 6400a86
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/__Private/MigrationCLI.hack
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ use type Facebook\HHAST\{
ImplicitShapeSubtypesMigration,
IsRefinementMigration,
OptionalShapeFieldsMigration,
PregWithMatchesMigration,
TopLevelRequiresMigration,
};

Expand Down Expand Up @@ -259,6 +260,14 @@ class MigrationCLI extends CLIWithRequiredArguments {
'Migrate /* HH_FIXME[4110] */ to the equivalent new error codes',
'--migrate-fixme-4110',
),
CLIOptions\flag(
() ==> {
$this->migrations[] = Fixme4110Migration::class;
},
'Migrate preg_match[_all]() with a by-ref/inout $matches argument to '.
'preg_match[_all]_with_matches()',
'--preg-with-matches',
),
CLIOptions\flag(
() ==> {
$this->includeVendor = true;
Expand Down

0 comments on commit 6400a86

Please sign in to comment.