v3.42.0
版本发布时间: 2023-12-24 22:38:58
PHP-CS-Fixer/PHP-CS-Fixer最新发布版本:v3.64.0(2024-08-31 07:09:51)
What's Changed
- feat: Ability to import FQCNs found during analysis by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7597
- feat: add phpDoc support for
fully_qualified_strict_types
fixer by @Jadro007 and @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/5620 - feat: Handle deprecated rule sets similarly to deprecated fixers by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7288
- feat: PhpUnitTestCaseStaticMethodCallsFixer - cover PHPUnit v10 methods by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7604
- feat: Support more FQCNs cases in
fully_qualified_strict_types
by @SpacePossum and @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7459 - feat(EXPERIMENTAL): ClassKeywordFixer by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/2918
- feat(EXPERIMENTAL): ClassKeywordFixer, part 2 by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7550
- feat(PhpdocToCommentFixer): Add option to handle return as valid docblock usage (#7401) by @f1amy in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7402
- fix: AbstractFixerTestCase - fix checking for correct casing by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7540
- fix: Better OS detection in integration tests by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7547
- fix: NativeTypeDeclarationCasingFixe - handle static property without type by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7589
- chore: aim to not rely on internal array pointer but use array_key_first by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7613
- chore: deprecate Token::isKeyCaseSensitive by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7599
- chore: deprecate Token::isKeyCaseSensitive, 2nd part by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7601
- chore: do not check PHP_VERSION_ID by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7602
- chore: FileFilterIteratorTest - more accurate type in docs by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7542
- chore: minor code cleanup by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7607
- chore: more types by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7598
- chore: PHPDoc key-value spacing by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7592
- chore: PHPUnit - run defects first by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7570
- chore: ProjectCodeTest - DRY on Tokens creation by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7574
- chore: ProjectCodeTest - prepare for symfony/console v7 by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7605
- chore: ProjectCodeTest::provide*ClassCases to return iterable with key for better tests execution log by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7572
- chore: ProjectCodeTest::testDataProvidersDeclaredReturnType - use better DataProvider to simplify test logic by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7573
- chore: TokensAnalyzer - string-enum for better typehinting by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7571
- chore: unify tests not agnostic of PHP version by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7581
- chore: use ::class more by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7545
- CI: Introduce
composer-unused
by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7536 - DX: add types to anonymous functions by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7561
- DX: Allow running smoke tests within Docker runtime by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7608
- DX: check fixer's options for wording by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7543
- DX: cleanup deprecation message by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7576
- DX: do not allow overriding constructor of
PHPUnit\Framework\TestCase
by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7563 - DX: do not import ExpectDeprecationTrait in UtilsTest by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7562
- DX: Enforce consistent naming in tests by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7556
- DX: fix checking test class extends
PhpCsFixer\Tests\TestCase
by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7567 - DX: make sure that exceptions in
AbstractFixerTestCase::testProperMethodNaming
are not already fixed by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7588 - DX: remove
PhpUnitNamespacedFixerTest::testClassIsFixed
by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7564 - DX: remove
symfony/phpunit-bridge
by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7578 - DX: remove recursion from AbstractIntegrationTestCase::testIntegration by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7577
- DX: replace fixture classes with anonymous ones by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7533
- DX: Unify Docker mount points and paths by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7549
- DX: unify fixer's test method names - quick wins by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7584
- DX: unify tests for casing fixers by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7558
- DX: use anonymous function over concrete classes by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7553
- test: AutoReview - unify data provider returns by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7544
- test: check to have DataProviders code agnostic of PHP version by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7575
New Contributors
- @Jadro007 made their first contribution in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/5620
- @f1amy made their first contribution in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7402
Full Changelog: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.41.1...v3.42.0
1、 php-cs-fixer.phar 2.65MB
2、 php-cs-fixer.phar.asc 566B