File tree Expand file tree Collapse file tree 6 files changed +48
-767
lines changed
Expand file tree Collapse file tree 6 files changed +48
-767
lines changed Original file line number Diff line number Diff line change 33declare (strict_types=1 );
44
55use Beste \PhpCsFixer \Config \Factory ;
6- use Beste \PhpCsFixer \Config \RuleSet \Php81 ;
6+ use Beste \PhpCsFixer \Config \RuleSet \Php83 ;
77
8- $ config = Factory::fromRuleSet (new Php81 ());
8+ $ config = Factory::fromRuleSet (new Php83 ());
99
1010$ config
1111 ->getFinder ()
Original file line number Diff line number Diff line change 22
33## [ Unreleased]
44
5+ * Reset rules:
6+ * Use PER Coding Style 2.0
7+ * Remove unused imports
8+ * Ordered imports
9+ * Trim array spaces
10+ * Ordered Types with ` null ` always last
11+ * Internal PHPUnit test cases
12+
513## [ 2.4.1] - 2023-11-30
614
715* Allow use of newer PHP CS Fixer versions
6169 * ` phpdoc_types_order ` : types are not sorted, ` null ` is always last
6270 * ` php_unit_test_class_requires_covers ` : Tests don't require ` @covers ` annotations
6371 * ` yoda_style ` : Condition styles are not enforced
64-
65- [ Unreleased ] : https://github.com/beste/php-cs-fixer-config/compare/2.4.1...main
66- [ 2.4.1 ] : https://github.com/beste/php-cs-fixer-config/compare/2.4.0...2.4.1
67- [ 2.4.0 ] : https://github.com/beste/php-cs-fixer-config/compare/2.3.0...2.4.0
68- [ 2.3.0 ] : https://github.com/beste/php-cs-fixer-config/compare/2.2.0...2.3.0
69- [ 2.2.0 ] : https://github.com/beste/php-cs-fixer-config/compare/2.1.0...2.2.0
70- [ 2.1.0 ] : https://github.com/beste/php-cs-fixer-config/compare/2.0.0...2.1.0
71- [ 2.0.0 ] : https://github.com/beste/php-cs-fixer-config/compare/1.2.0...2.0.0
72- [ 1.2.0 ] : https://github.com/beste/php-cs-fixer-config/compare/1.1.0...1.2.0
73- [ 1.1.0 ] : https://github.com/beste/php-cs-fixer-config/compare/1.0.2...1.1.0
74- [ 1.0.2 ] : https://github.com/beste/php-cs-fixer-config/compare/1.0.1...1.0.2
75- [ 1.0.1 ] : https://github.com/beste/php-cs-fixer-config/compare/1.0.0...1.0.1
76- [ 1.0.0 ] : https://github.com/beste/php-cs-fixer-config/tree/1.0.0
Original file line number Diff line number Diff line change 1313 "php" : " ~8.1.0 || ~8.2.0 || ~8.3.0"
1414 },
1515 "suggest" : {
16- "friendsofphp/php-cs-fixer" : " ^3.18.0 "
16+ "friendsofphp/php-cs-fixer" : " ^3.59.3 "
1717 },
1818 "require-dev" : {
19- "friendsofphp/php-cs-fixer" : " ^3.18.0 "
19+ "friendsofphp/php-cs-fixer" : " ^3.59.3 "
2020 },
2121 "autoload" : {
2222 "psr-4" : {
Original file line number Diff line number Diff line change 1111namespace Beste \PhpCsFixer \Config ;
1212
1313use PhpCsFixer \Config ;
14+ use PhpCsFixer \Runner \Parallel \ParallelConfigFactory ;
1415
1516final class Factory
1617{
@@ -34,7 +35,7 @@ public static function fromRuleSet(
3435 }
3536
3637 $ config = new Config ($ ruleSet ->name ());
37-
38+ $ config -> setParallelConfig (ParallelConfigFactory:: detect ());
3839 $ config ->setRiskyAllowed (true );
3940 $ config ->setRules (array_merge (
4041 $ ruleSet ->rules (),
You can’t perform that action at this time.
0 commit comments