File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed
Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 1010 name : Pest ${{ matrix.test-suite }} on PHP ${{ matrix.php }}
1111 strategy :
1212 matrix :
13- php : ["8.0", "8.1" ]
13+ php : [8.1 ]
1414 test-suite : ['phpcsfixer', 'phpstan', 'rector']
1515
1616 steps :
Original file line number Diff line number Diff line change 33 "description" : " Worksomes coding style" ,
44 "type" : " composer-plugin" ,
55 "require" : {
6- "PHP" : " ^8.0 " ,
6+ "PHP" : " ^8.1 " ,
77 "composer-plugin-api" : " ^2.0" ,
88 "canvural/larastan-strict-rules" : " ^1.0 || ^2.0" ,
99 "friendsofphp/php-cs-fixer" : " ^3.8" ,
Original file line number Diff line number Diff line change @@ -76,11 +76,7 @@ public static function setup(ECSConfig $ecsConfig): void
7676 SetList::PSR_12 ,
7777 ]);
7878
79- $ ecsConfig ->skip ([
80- FunctionDeclarationFixer::class,
81- BinaryOperatorSpacesFixer::class,
82- UnaryOperatorSpacesFixer::class,
83- ]);
79+ $ ecsConfig ->skip (self ::skips ());
8480
8581 $ ecsConfig ->ruleWithConfiguration (RequireMultiLineTernaryOperatorSniff::class, [
8682 'lineLengthLimit ' => 120 ,
@@ -183,4 +179,14 @@ public static function setup(ECSConfig $ecsConfig): void
183179 PropertyDollarSignSniff::class,
184180 ]);
185181 }
182+
183+ public static function skips (array $ additional = []): array
184+ {
185+ return [
186+ FunctionDeclarationFixer::class,
187+ BinaryOperatorSpacesFixer::class,
188+ UnaryOperatorSpacesFixer::class,
189+ ...$ additional ,
190+ ];
191+ }
186192}
You can’t perform that action at this time.
0 commit comments