File tree Expand file tree Collapse file tree 5 files changed +16
-6
lines changed Expand file tree Collapse file tree 5 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 13
13
strategy :
14
14
matrix :
15
15
php-version :
16
- - " 8.2 "
16
+ - " 8.3 "
17
17
operating-system :
18
18
- " ubuntu-latest"
19
19
Original file line number Diff line number Diff line change 17
17
- " 8.0"
18
18
- " 8.1"
19
19
- " 8.2"
20
+ - " 8.3"
20
21
operating-system :
21
22
- " ubuntu-latest"
22
23
Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ This package makes use of PHP-CS-Fixer.
14
14
This package provides default rules to be used with PHP-CS-Fixer.
15
15
16
16
You can find them in ` Mollie\PhpCodingStandards\PhpCsFixer\Rules ` which has methods specific to php version,
17
- which you can directly use in the ` ->setRules() ` part of your config. For example, assuming PHP version 8.2 :
17
+ which you can directly use in the ` ->setRules() ` part of your config. For example, assuming PHP version 8.3 :
18
18
19
19
``` php
20
20
use Mollie\PhpCodingStandards\PhpCsFixer\Rules;
21
21
22
- $config->setRules(Rules::getForPhp82 ());
22
+ $config->setRules(Rules::getForPhp83 ());
23
23
```
24
24
25
25
### New to PHP-CS-Fixer
@@ -39,7 +39,7 @@ $finder = Finder::create()
39
39
return (new Config())
40
40
->setFinder($finder)
41
41
->setRiskyAllowed(true)
42
- // use specific rules for your php version e.g.: getForPhp74, getForPhp80, getForPhp81
42
+ // use specific rules for your php version e.g.: getForPhp74, getForPhp82, getForPhp83
43
43
->setRules(Rules::getForPhp74());
44
44
```
45
45
Original file line number Diff line number Diff line change 11
11
],
12
12
"require" : {
13
13
"php" : " ^7.1.3 || ^8.0" ,
14
- "friendsofphp/php-cs-fixer" : " ^3.15 "
14
+ "friendsofphp/php-cs-fixer" : " ^3.40 "
15
15
},
16
16
"minimum-stability" : " stable" ,
17
17
"autoload" : {
Original file line number Diff line number Diff line change 5
5
namespace Mollie \PhpCodingStandards \PhpCsFixer ;
6
6
7
7
/*
8
- * Last updated for php-cs-fixer version: 3.15.1
8
+ * Last updated for php-cs-fixer version: 3.40.2
9
9
*/
10
10
class Rules
11
11
{
@@ -84,6 +84,15 @@ public static function getForPhp82(array $overriddenRules = []): array
84
84
return array_merge (self ::getForPhp81 ($ specific82Rules ), $ overriddenRules );
85
85
}
86
86
87
+ public static function getForPhp83 (array $ overriddenRules = []): array
88
+ {
89
+ $ specific83Rules = [
90
+ // At the moment there are no specific 8.3 rules or configurations
91
+ ];
92
+
93
+ return array_merge (self ::getForPhp82 ($ specific83Rules ), $ overriddenRules );
94
+ }
95
+
87
96
private static function getBaseRules (): array
88
97
{
89
98
return [
You can’t perform that action at this time.
0 commit comments