v3.23.0
版本发布时间: 2023-08-14 20:28:30
PHP-CS-Fixer/PHP-CS-Fixer最新发布版本:v3.64.0(2024-08-31 07:09:51)
What's Changed
- docs: MethodArgumentSpaceFixer - mention PSR in Fixer definition by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7157
- bug: Support annotations with arguments in
FinalInternalClassFixer
by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7160 - DX: add
YieldFromArrayToYieldsFixer
toPhpCsFixer
set by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7115 - DX: fix contravariant types in PHPDocs by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7167
- bug: YieldFromArrayToYieldsFixer - fix for
yield from
after}
by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7169 - DX: remove unnecessary arrays from data providers by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7170
- docs: Add extra information for GitLab reporter's integration with GitLab Code Quality by @0x346e3730 in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7172
- DX: Allow OS conditions for integration tests by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7161
- docs: Add allowed values of tags in the
phpdoc_align
by @kayw-geek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7120 - feature:
BlankLineBeforeStatementFixer
- take into account comment before statement by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7166 - DX: Apply current CS rules by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7178
- DX: Fix some PHPStan issues by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7180
- docs: Change the single backticks to double in description of the rules option by @kayw-geek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7173
- bug: Fixed line between general script documentation and require by @rinu in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7177
- docs: Condensed output for rule sets' list that fixer is included in by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7182
- feature: Introduce
ReturnToYieldFromFixer
by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7168 - bug: Fix names resolving in
no_superfluous_phpdoc_tags
fixer by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7189 - bug: Fix various bugs in
FullyQualifiedStrictTypesFixer
fixer by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7188 - bug: Fix detecting classy invokation in catch by @fancyweb in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7191
- bug: BlankLineBeforeStatementFixer - do not enforce/add a blank line when there is a blank line between the comment and the statement already by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7190
- DX: refactor
ErrorOutputTest
by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7183 - bug: YieldFromArrayToYieldsFixer - fix handling the comment before the first array element by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7193
- DX: apply
ReturnToYieldFromFixer
by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7181 - DX: enable
UseArrowFunctionsFixer
for the codebase by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7194 - DX: enable
HeredocIndentationFixer
for the codebase by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7195 - DX: Introduce Composer scripts as common DX by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/6839
- feature: Introduce
SpacesInsideParenthesesFixer
by @SuperDJ, @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/5709 - DX: update
HeredocIndentationFixer
code samples by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7197 - DX: update
CurlyBracesPositionFixer
code samples by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7198 - DX: update
PhpdocToReturnTypeFixer
code samples by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7199 - feature:
BlankLineBeforeStatementFixer
- skip enum cases by @paulbalandan in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7203 - docs: Improve contributing guide by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7204
- DX: Do not mark "long term ideas" as stale by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7206
- bug:
HeaderCommentFixer
must run beforeBlankLinesBeforeNamespaceFixer
by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7205 - DX: add first auto-review tests for composer.json file by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7210
- DX: few phpstan fixes by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7208
- feature: Support array destructuring in
trim_array_spaces
by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7218 - DX: Get rid of deprecation warnings in Mess Detector by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7215
- DX: Apply suggestions from PR 7210 by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7213
- DX: Fix detecting trailing spaces by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7216
- minor: more arrow function usage by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7223
- minor: use JSON_THROW_ON_ERROR for trivial cases by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7221
- bug:
NoUselessReturnFixer
must run beforeSingleLineEmptyBodyFixer
by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7226 - DX: Improve Mess Detector Integration by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7224
- minor: use more spread operator by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7222
- minor: PhpdocAlignFixerTest - convert CUSTOM tags test to not rely on non-custom tag from TAGS_WITH_NAME by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7209
- bug:
PhpdocInlineTagNormalizerFixer
- do not break tags by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7227 - feature: add at least one space around binary operators by @duboism in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7175
- DX: Improve Composer scripts by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7214
New Contributors
- @0x346e3730 made their first contribution in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7172
- @rinu made their first contribution in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7177
- @SuperDJ made their first contribution in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/5709
- @duboism made their first contribution in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7175
Full Changelog: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.22.0...v3.23.0
1、 php-cs-fixer.phar 2.66MB
2、 php-cs-fixer.phar.asc 566B