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