diff --git a/.vortex/installer/tests/Fixtures/handler_process/_baseline/rector.php b/.vortex/installer/tests/Fixtures/handler_process/_baseline/rector.php index 53e1ebb46..503b8ce5e 100644 --- a/.vortex/installer/tests/Fixtures/handler_process/_baseline/rector.php +++ b/.vortex/installer/tests/Fixtures/handler_process/_baseline/rector.php @@ -82,6 +82,8 @@ // PHP version upgrade sets - modernizes syntax to PHP 8.4. // Includes all rules from PHP 5.3 through 8.4. ->withPhpSets(php84: TRUE) + // Behat attribute sets - converts annotations to PHP 8 attributes. + ->withAttributesSets(behat: TRUE) // Code quality improvement sets. ->withPreparedSets( codeQuality: TRUE, diff --git a/.vortex/installer/tests/Fixtures/handler_process/tools_groups_no_be_tests/rector.php b/.vortex/installer/tests/Fixtures/handler_process/tools_groups_no_be_tests/rector.php index 6d8e0f6d3..6884d9fc1 100644 --- a/.vortex/installer/tests/Fixtures/handler_process/tools_groups_no_be_tests/rector.php +++ b/.vortex/installer/tests/Fixtures/handler_process/tools_groups_no_be_tests/rector.php @@ -6,7 +6,16 @@ use Rector\Privatization\Rector\ClassMethod\PrivatizeFinalClassMethodRector; use Rector\Privatization\Rector\MethodCall\PrivatizeLocalGetterToPropertyRector; use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector; -@@ -99,7 +98,6 @@ +@@ -82,8 +81,6 @@ + // PHP version upgrade sets - modernizes syntax to PHP 8.4. + // Includes all rules from PHP 5.3 through 8.4. + ->withPhpSets(php84: TRUE) +- // Behat attribute sets - converts annotations to PHP 8 attributes. +- ->withAttributesSets(behat: TRUE) + // Code quality improvement sets. + ->withPreparedSets( + codeQuality: TRUE, +@@ -101,7 +98,6 @@ // Additional rules. ->withRules([ DeclareStrictTypesRector::class, diff --git a/.vortex/installer/tests/Fixtures/handler_process/tools_groups_no_be_tests_circleci/rector.php b/.vortex/installer/tests/Fixtures/handler_process/tools_groups_no_be_tests_circleci/rector.php index 6d8e0f6d3..6884d9fc1 100644 --- a/.vortex/installer/tests/Fixtures/handler_process/tools_groups_no_be_tests_circleci/rector.php +++ b/.vortex/installer/tests/Fixtures/handler_process/tools_groups_no_be_tests_circleci/rector.php @@ -6,7 +6,16 @@ use Rector\Privatization\Rector\ClassMethod\PrivatizeFinalClassMethodRector; use Rector\Privatization\Rector\MethodCall\PrivatizeLocalGetterToPropertyRector; use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector; -@@ -99,7 +98,6 @@ +@@ -82,8 +81,6 @@ + // PHP version upgrade sets - modernizes syntax to PHP 8.4. + // Includes all rules from PHP 5.3 through 8.4. + ->withPhpSets(php84: TRUE) +- // Behat attribute sets - converts annotations to PHP 8 attributes. +- ->withAttributesSets(behat: TRUE) + // Code quality improvement sets. + ->withPreparedSets( + codeQuality: TRUE, +@@ -101,7 +98,6 @@ // Additional rules. ->withRules([ DeclareStrictTypesRector::class, diff --git a/.vortex/installer/tests/Fixtures/handler_process/tools_no_behat/rector.php b/.vortex/installer/tests/Fixtures/handler_process/tools_no_behat/rector.php new file mode 100644 index 000000000..b7723e06f --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/tools_no_behat/rector.php @@ -0,0 +1,9 @@ +@@ -82,8 +82,6 @@ + // PHP version upgrade sets - modernizes syntax to PHP 8.4. + // Includes all rules from PHP 5.3 through 8.4. + ->withPhpSets(php84: TRUE) +- // Behat attribute sets - converts annotations to PHP 8 attributes. +- ->withAttributesSets(behat: TRUE) + // Code quality improvement sets. + ->withPreparedSets( + codeQuality: TRUE, diff --git a/.vortex/installer/tests/Fixtures/handler_process/tools_no_behat_circleci/rector.php b/.vortex/installer/tests/Fixtures/handler_process/tools_no_behat_circleci/rector.php new file mode 100644 index 000000000..b7723e06f --- /dev/null +++ b/.vortex/installer/tests/Fixtures/handler_process/tools_no_behat_circleci/rector.php @@ -0,0 +1,9 @@ +@@ -82,8 +82,6 @@ + // PHP version upgrade sets - modernizes syntax to PHP 8.4. + // Includes all rules from PHP 5.3 through 8.4. + ->withPhpSets(php84: TRUE) +- // Behat attribute sets - converts annotations to PHP 8 attributes. +- ->withAttributesSets(behat: TRUE) + // Code quality improvement sets. + ->withPreparedSets( + codeQuality: TRUE, diff --git a/.vortex/installer/tests/Fixtures/handler_process/tools_no_phpunit/rector.php b/.vortex/installer/tests/Fixtures/handler_process/tools_no_phpunit/rector.php index 6d8e0f6d3..a8a54b7f9 100644 --- a/.vortex/installer/tests/Fixtures/handler_process/tools_no_phpunit/rector.php +++ b/.vortex/installer/tests/Fixtures/handler_process/tools_no_phpunit/rector.php @@ -6,7 +6,7 @@ use Rector\Privatization\Rector\ClassMethod\PrivatizeFinalClassMethodRector; use Rector\Privatization\Rector\MethodCall\PrivatizeLocalGetterToPropertyRector; use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector; -@@ -99,7 +98,6 @@ +@@ -101,7 +100,6 @@ // Additional rules. ->withRules([ DeclareStrictTypesRector::class, diff --git a/.vortex/installer/tests/Fixtures/handler_process/tools_no_phpunit_circleci/rector.php b/.vortex/installer/tests/Fixtures/handler_process/tools_no_phpunit_circleci/rector.php index 6d8e0f6d3..a8a54b7f9 100644 --- a/.vortex/installer/tests/Fixtures/handler_process/tools_no_phpunit_circleci/rector.php +++ b/.vortex/installer/tests/Fixtures/handler_process/tools_no_phpunit_circleci/rector.php @@ -6,7 +6,7 @@ use Rector\Privatization\Rector\ClassMethod\PrivatizeFinalClassMethodRector; use Rector\Privatization\Rector\MethodCall\PrivatizeLocalGetterToPropertyRector; use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector; -@@ -99,7 +98,6 @@ +@@ -101,7 +100,6 @@ // Additional rules. ->withRules([ DeclareStrictTypesRector::class, diff --git a/rector.php b/rector.php index 53e1ebb46..31af310ff 100644 --- a/rector.php +++ b/rector.php @@ -82,6 +82,10 @@ // PHP version upgrade sets - modernizes syntax to PHP 8.4. // Includes all rules from PHP 5.3 through 8.4. ->withPhpSets(php84: TRUE) + #;< TOOL_BEHAT + // Behat attribute sets - converts annotations to PHP 8 attributes. + ->withAttributesSets(behat: TRUE) + #;> TOOL_BEHAT // Code quality improvement sets. ->withPreparedSets( codeQuality: TRUE,