Skip to content

Commit 271488b

Browse files
authored
[#2399] Added Behat attribute set to Rector configuration. (#2416)
1 parent df6a257 commit 271488b

8 files changed

Lines changed: 46 additions & 4 deletions

File tree

.vortex/installer/tests/Fixtures/handler_process/_baseline/rector.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@
8282
// PHP version upgrade sets - modernizes syntax to PHP 8.4.
8383
// Includes all rules from PHP 5.3 through 8.4.
8484
->withPhpSets(php84: TRUE)
85+
// Behat attribute sets - converts annotations to PHP 8 attributes.
86+
->withAttributesSets(behat: TRUE)
8587
// Code quality improvement sets.
8688
->withPreparedSets(
8789
codeQuality: TRUE,

.vortex/installer/tests/Fixtures/handler_process/tools_groups_no_be_tests/rector.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,16 @@
66
use Rector\Privatization\Rector\ClassMethod\PrivatizeFinalClassMethodRector;
77
use Rector\Privatization\Rector\MethodCall\PrivatizeLocalGetterToPropertyRector;
88
use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector;
9-
@@ -99,7 +98,6 @@
9+
@@ -82,8 +81,6 @@
10+
// PHP version upgrade sets - modernizes syntax to PHP 8.4.
11+
// Includes all rules from PHP 5.3 through 8.4.
12+
->withPhpSets(php84: TRUE)
13+
- // Behat attribute sets - converts annotations to PHP 8 attributes.
14+
- ->withAttributesSets(behat: TRUE)
15+
// Code quality improvement sets.
16+
->withPreparedSets(
17+
codeQuality: TRUE,
18+
@@ -101,7 +98,6 @@
1019
// Additional rules.
1120
->withRules([
1221
DeclareStrictTypesRector::class,

.vortex/installer/tests/Fixtures/handler_process/tools_groups_no_be_tests_circleci/rector.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,16 @@
66
use Rector\Privatization\Rector\ClassMethod\PrivatizeFinalClassMethodRector;
77
use Rector\Privatization\Rector\MethodCall\PrivatizeLocalGetterToPropertyRector;
88
use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector;
9-
@@ -99,7 +98,6 @@
9+
@@ -82,8 +81,6 @@
10+
// PHP version upgrade sets - modernizes syntax to PHP 8.4.
11+
// Includes all rules from PHP 5.3 through 8.4.
12+
->withPhpSets(php84: TRUE)
13+
- // Behat attribute sets - converts annotations to PHP 8 attributes.
14+
- ->withAttributesSets(behat: TRUE)
15+
// Code quality improvement sets.
16+
->withPreparedSets(
17+
codeQuality: TRUE,
18+
@@ -101,7 +98,6 @@
1019
// Additional rules.
1120
->withRules([
1221
DeclareStrictTypesRector::class,
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@@ -82,8 +82,6 @@
2+
// PHP version upgrade sets - modernizes syntax to PHP 8.4.
3+
// Includes all rules from PHP 5.3 through 8.4.
4+
->withPhpSets(php84: TRUE)
5+
- // Behat attribute sets - converts annotations to PHP 8 attributes.
6+
- ->withAttributesSets(behat: TRUE)
7+
// Code quality improvement sets.
8+
->withPreparedSets(
9+
codeQuality: TRUE,
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@@ -82,8 +82,6 @@
2+
// PHP version upgrade sets - modernizes syntax to PHP 8.4.
3+
// Includes all rules from PHP 5.3 through 8.4.
4+
->withPhpSets(php84: TRUE)
5+
- // Behat attribute sets - converts annotations to PHP 8 attributes.
6+
- ->withAttributesSets(behat: TRUE)
7+
// Code quality improvement sets.
8+
->withPreparedSets(
9+
codeQuality: TRUE,

.vortex/installer/tests/Fixtures/handler_process/tools_no_phpunit/rector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Rector\Privatization\Rector\ClassMethod\PrivatizeFinalClassMethodRector;
77
use Rector\Privatization\Rector\MethodCall\PrivatizeLocalGetterToPropertyRector;
88
use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector;
9-
@@ -99,7 +98,6 @@
9+
@@ -101,7 +100,6 @@
1010
// Additional rules.
1111
->withRules([
1212
DeclareStrictTypesRector::class,

.vortex/installer/tests/Fixtures/handler_process/tools_no_phpunit_circleci/rector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Rector\Privatization\Rector\ClassMethod\PrivatizeFinalClassMethodRector;
77
use Rector\Privatization\Rector\MethodCall\PrivatizeLocalGetterToPropertyRector;
88
use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector;
9-
@@ -99,7 +98,6 @@
9+
@@ -101,7 +100,6 @@
1010
// Additional rules.
1111
->withRules([
1212
DeclareStrictTypesRector::class,

rector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@
8282
// PHP version upgrade sets - modernizes syntax to PHP 8.4.
8383
// Includes all rules from PHP 5.3 through 8.4.
8484
->withPhpSets(php84: TRUE)
85+
#;< TOOL_BEHAT
86+
// Behat attribute sets - converts annotations to PHP 8 attributes.
87+
->withAttributesSets(behat: TRUE)
88+
#;> TOOL_BEHAT
8589
// Code quality improvement sets.
8690
->withPreparedSets(
8791
codeQuality: TRUE,

0 commit comments

Comments
 (0)