Skip to content

Commit 23c90d4

Browse files
committed
Reset rules
1 parent 9a8d222 commit 23c90d4

File tree

6 files changed

+48
-767
lines changed

6 files changed

+48
-767
lines changed

.php-cs-fixer.dist.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
declare(strict_types=1);
44

55
use 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()

CHANGELOG.md

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
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
@@ -61,16 +69,3 @@
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

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
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": {

src/Factory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
namespace Beste\PhpCsFixer\Config;
1212

1313
use PhpCsFixer\Config;
14+
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
1415

1516
final 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(),

0 commit comments

Comments
 (0)