diff --git a/.github/workflows/diagnostics.yml b/.github/workflows/diagnostics.yml index c393872..f59084b 100644 --- a/.github/workflows/diagnostics.yml +++ b/.github/workflows/diagnostics.yml @@ -17,12 +17,6 @@ jobs: fail-fast: false matrix: include: - - php: '7.4' - phpcq_install: 'update' - phpcq_flags: '' - - php: '8.0' - phpcq_install: 'update' - phpcq_flags: '' - php: '8.1' phpcq_install: 'update' phpcq_flags: '' diff --git a/composer.json b/composer.json index ab54834..96838ae 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ } ], "require": { - "php": "^7.3 || ^8.0", + "php": "^8.1", "ext-dom": "*" }, "require-dev": { @@ -35,7 +35,8 @@ }, "extra": { "branch-alias": { - "dev-master": "1.x-dev" + "dev-master": "1.x-dev", + "dev-feature/fix-plugin-interface": "1.1.x-dev" } } } diff --git a/src/Version10/FixPluginInterface.php b/src/Version10/FixPluginInterface.php new file mode 100644 index 0000000..15fb556 --- /dev/null +++ b/src/Version10/FixPluginInterface.php @@ -0,0 +1,36 @@ + + */ + public function createFixTasks( + PluginConfigurationInterface $config, + EnvironmentInterface $environment + ): iterable; +} diff --git a/src/Version10/FixStage.php b/src/Version10/FixStage.php new file mode 100644 index 0000000..6eb29d6 --- /dev/null +++ b/src/Version10/FixStage.php @@ -0,0 +1,32 @@ + 0, + self::Refactor => 1, + self::Format => 2, + }; + } +} diff --git a/tests/Version10/FixStageTest.php b/tests/Version10/FixStageTest.php new file mode 100644 index 0000000..83bdff7 --- /dev/null +++ b/tests/Version10/FixStageTest.php @@ -0,0 +1,34 @@ + $first->order() <=> $second->order()); + + self::assertSame( + ['normalize', 'refactor', 'format'], + array_map(static fn (FixStage $stage): string => $stage->value, $stages) + ); + } +}