|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## v2.0.0 - December 2024 |
3 | 4 |
|
4 | | -## [Unreleased] - 2024-05-21 |
| 5 | +This version is a major release and includes breaking changes. |
| 6 | +Adjust your configuration, apply the fixes and review code for the new version. |
| 7 | + |
| 8 | +### PER Coding Style 2.0 |
| 9 | +PER Coding Style 2.0 (https://www.php-fig.org/per/coding-style/) was introduced. |
| 10 | +This leads to some adjustments in the code which most probably can be autofixed with `ecs check --fix`. |
| 11 | +Review your code after running the fixer. |
| 12 | + |
| 13 | +Rules applied to the set can be found here: https://cs.symfony.com/doc/ruleSets/PER-CS2.0.html. This is the base from which we make our own small adjustments. |
| 14 | +"Concat Space" for example, is a rule which has already been applied to the Symfony rule set in the past, which we enforce in the standard everywhere. |
| 15 | + |
| 16 | +### Unify rule sets |
| 17 | +Removed `whatwedo-wordpress.php` and `whatwedo-symfony.php` in favor of `whatwedo-common.php`. If you have used `whatwedo-symfony.php` or `whatwedo-wordpress.php`, you have to switch to `whatwedo-common.php` in the config. |
| 18 | + |
| 19 | +### Update ECS Configuration |
| 20 | +Update your configuration (`ecs.php`) to the new version and adjust to your preferences. See our example file in the root of this repository. |
| 21 | + |
| 22 | +## Technical |
| 23 | + |
| 24 | +### Changed |
| 25 | +- Unify rule sets (https://github.com/whatwedo/PhpCodingStandard/issues/17) |
| 26 | +- Minor update to `symplify/easy-coding-standard 12.4` |
| 27 | + |
| 28 | +### Added |
| 29 | +- DynamicSet `@PER-CS2.0` was added to the configuration (https://github.com/whatwedo/PhpCodingStandard/issues/19) |
| 30 | +- Add `MultilinePromotedPropertiesFixer` (https://github.com/whatwedo/PhpCodingStandard/issues/27) |
| 31 | +- Add `MultilinePromotedPropertiesFixer` (https://github.com/whatwedo/PhpCodingStandard/issues/27) |
| 32 | +- Add `PhpdocToReturnTypeFixer` and `PhpdocToParamTypeFixer` |
| 33 | +- `NoDoctrineMigrationsGeneratedCommentFixer` is now part of the default configuration (https://github.com/whatwedo/PhpCodingStandard/issues/16) |
| 34 | +- `ConcatSpaceFixer` => `'spacing' => 'none'` is now part of the default configuration (https://github.com/whatwedo/PhpCodingStandard/issues/15) |
| 35 | + |
| 36 | +### Removed |
| 37 | +- Remove deprecated `NoTrailingCommaInListCallFixer` |
| 38 | +- `AssignmentInConditionSniff` is skipped |
| 39 | + |
| 40 | +--- |
| 41 | + |
| 42 | +## v1.2.5 - March 2024 |
5 | 43 |
|
6 | 44 | ### Changed |
7 | 45 |
|
8 | | -- update to `symplify/easy-coding-standard ^12` |
| 46 | +- Update to `symplify/easy-coding-standard ^12` |
| 47 | +- Dump Fixer added |
0 commit comments