v3.50.0
版本发布时间: 2024-02-24 07:19:44
PHP-CS-Fixer/PHP-CS-Fixer最新发布版本:v3.57.1(2024-05-16 06:01:21)
What's Changed
- feat: Ability to remove unused imports from multi-use statements by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7815
- feat: Support shortening symbols from multi-use statements (only classes for now) by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7816
- feat: allow PHPUnit 11 by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7824
- feat:
MbStrFunctionsFixer
- add support formb_trim
,mb_ltrim
andmb_rtrim
functions by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7840 - feat:
no_superfluous_phpdoc_tags
- introduceallow_hidden_params
option by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7743 - feat:
NoEmptyPhpdocFixer
- do not leave empty line after removing PHPDoc by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7820 - feat: introduce
PhpdocArrayTypeFixer
by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7812 - feat: PhpUnitTestCaseStaticMethodCallsFixer - cover PHPUnit v11 methods by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7822
- feat: Support for multi-use statements in
NamespaceUsesAnalyzer
by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7814 - fix:
ExecutorWithoutErrorHandler
- remove invalid PHP 7.4 type by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7845 - fix:
fully_qualified_strict_types
must honor template/local type identifiers by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7724 - fix:
MethodArgumentSpaceFixer
- do not break heredoc/nowdoc by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7828 - fix:
NumericLiteralSeparatorFixer
- do not changefloat
toint
when there is nothing after the dot by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7805 - fix:
PhpUnitStrictFixer
- do not crash on property having the name of method to fix by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7804 - fix:
SingleSpaceAroundConstructFixer
- correctly recognise multiple constants by @kubawerlos and @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7700 - fix:
TypeExpression
- handle array shape key with dash by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7841 - fix: do not use wrongly named arguments in data providers by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7823
- fix: Ensure PCNTL extension is always installed in Docker by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7782
- fix: PhpdocListTypeFixer - support key types containing
<…>
by @gharlan in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7817 - fix: Proper build target for local Docker Compose by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7834
- fix: union PHPDoc support in
fully_qualified_strict_types
fixer by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7719 - chore: add missing types by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7842
- chore: BlocksAnalyzer - raise exception on invalid index by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7819
- chore: DataProviderAnalysis - expect list over array by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7800
- chore: do not use
@large
on method level by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7832 - chore: do not use
@medium
on method level by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7833 - chore: Fix typos by @tamiroh in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7835
- chore: rename variables by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7847
- chore: some improvements around array typehints by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7799
- CI: fix PHP 8.4 job by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7829
- DX: Include
symfony/var-dumper
in dev tools by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7795
New Contributors
- @tamiroh made their first contribution in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7835
Full Changelog: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.49.0...v3.50.0
1、 php-cs-fixer.phar 2.71MB
2、 php-cs-fixer.phar.asc 566B