Releases: PHP-CS-Fixer/PHP-CS-Fixer
Releases · PHP-CS-Fixer/PHP-CS-Fixer
v3.43.1 Three Keys
What's Changed
Full Changelog: v3.43.0...v3.43.1
v3.43.0 Three Keys
What's Changed
- feat: add cast_spaces into
@PER-CS2.0
by @keradus in #7625 - feat: Configurable phpDoc tags for FQCN processing by @Wirone in #7628
- feat: StatementIndentationFixer - introduce stick_comment_to_next_continuous_control_statement config by @keradus in #7624
- feat: UnaryOperatorSpacesFixer - introduce only_dec_inc config by @keradus in #7626
- fix: FullyQualifiedStrictTypesFixer - better support annotations in inline {} by @keradus in #7633
- fix: Improve how FQCN is handled in phpDoc by @Wirone in #7622
- fix: phpdoc_align - fix multiline tag alignment issue by @keradus in #7630
- chore: change base of
@Symfony
set to@PER-CS2.0
by @keradus in #7627 - chore: PHPUnit - allow for v10 by @keradus in #7606
- chore: Preg - rework catching the error by @keradus in #7616
- chore: Revert unneeded peer-dep-pin and re-gen lock file by @GrahamCampbell in #7618
- docs: drop extra note about 8.0.0 bug in README.md by @keradus in #7614
Full Changelog: v3.42.0...v3.43.0
v3.42.0 Three Keys
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 @SpacePossum and @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
v3.41.1 Long Night
What's Changed
- DX: Change
@testWith
to@dataProvider
by @Wirone in #7535 - DX: Introduce Markdownlint by @Wirone in #7534
- fix: NativeTypeDeclarationCasingFixer - do not crash on
var
keyword by @kubawerlos in #7538
Full Changelog: v3.41.0...v3.41.1
v3.41.0 Long Night
What's Changed
- DX: Utilise auto-discovery for PHPStan formatter by @Wirone in #7490
- DX: remove AbstractFixerTestCase::getTestFile() by @kubawerlos in #7495
- chore: Symfony v7 is now stable by @keradus in #7469
- DX: replace Prophecy with anonymous classes in ProcessLintingResultTest by @kubawerlos in #7501
- feat: Support
mb_str_pad
function inmb_str_functions
rule by @arnaud-deabreu in #7499 - chore: Move
mb_str_functions
PHP 8.3 cases to separate test by @Wirone in #7505 - DX: replace Prophecy with anonymous classes in CacheTest by @kubawerlos in #7503
- DX: Add progress output for
cs:check
script by @Wirone in #7514 - fix: Downgrade PDepend to version not supporting Symfony 7 by @Wirone in #7513
- CI: drop PHP 8.3 hacks by @keradus in #7519
- fix: GlobalNamespaceImportFixer - key in PHPDoc's array shape matching class name by @kubawerlos in #7522
- fix: BinaryOperatorSpacesFixer - do not add whitespace inside short function by @kubawerlos in #7523
- docs: Improve docs for
no_spaces_after_function_name
by @kamil-tekiela in #7520 - DX: remove Prophecy by @kubawerlos in #7509
- DX: remove jangregor/phpstan-prophecy by @kubawerlos in #7524
- DX: Ability to run Sphinx linter locally by @Wirone in #7481
- DX: align doubles naming by @kubawerlos in #7525
- fix: SpacesInsideParenthesesFixer - handle class instantiation parentheses by @kubawerlos in #7531
- DX: udate PHPstan to 1.10.48 by @kubawerlos in #7532
- DX: AbstractFixerTest - use anonymous classes by @kubawerlos in #7527
New Contributors
- @arnaud-deabreu made their first contribution in #7499
- @kamil-tekiela made their first contribution in #7520
Full Changelog: v3.40.2...v3.41.0
v3.40.2 I ate three cookies 🍪
What's Changed
Full Changelog: v3.40.1...v3.40.2
v3.40.1 I ate three cookies 🍪
What's Changed
- chore: Delete stray file x by @szepeviktor in #7473
- chore: Fix typos by @szepeviktor in #7474
- CI: Fix editorconfig by @szepeviktor in #7478
- chore: Make YAML workflow git-based by @szepeviktor in #7477
- chore: Indent JSON files with 4 spaces by @szepeviktor in #7480
- CI: Lint docs by @szepeviktor in #7479
- fix:
NoSpacesAfterFunctionNameFixer
- do not remove space if the opening parenthesis part of an expression by @kubawerlos in #7430 - chore: Fix YAML line length by @szepeviktor in #7476
- CI: Use PHPStan's native Github error formatter by @Wirone in #7487
- DX: fix PHPStan error by @kubawerlos in #7488
- DX: Update PHPStan to 1.10.46 by @Wirone in #7486
- chore: Use stable XDebug by @Wirone in #7489
- DX: PsrAutoloadingFixerTest - do not build mock in data provider by @kubawerlos in #7491
- DX: PsrAutoloadingFixerTest - merge all data providers into one by @kubawerlos in #7492
Full Changelog: v3.40.0...v3.40.1
v3.40.0 I ate three cookies 🍪
What's Changed
- chore: officially support PHP 8.3 🚀 by @keradus in #7466
- chore: update deps by @keradus in #7471
- CI: bump actions/github-script to v7 by @keradus in #7468
- CI: add --no-update while dropping non-compat
facile-it/paraunit
by @keradus in #7470 - CI: automate --ignore-platform-req=PHP by @keradus in #7467
- CI: move humbug/box out of dev-tools/composer.json by @keradus in #7472
Full Changelog: v3.39.1...v3.40.0
v3.39.1 Getting Ready
What's Changed
- DX: introduce SwitchAnalyzer by @kubawerlos in #7456
- test: Improve
ExplicitIndirectVariableFixerTest
by @Wirone in #7451 - fix: NoExtraBlankLinesFixer - do not remove blank line after
? : throw
by @kubawerlos in #7457 - fix: OrderedInterfacesFixer - do not comment out interface by @kubawerlos in #7464
Full Changelog: v3.39.0...v3.39.1
v3.39.0 Getting Ready
What's Changed
- 🎉 feat: Introduce
@PHP83Migration
ruleset and PHP 8.3 integration test by @Wirone in #7439 - 🎉 chore: Add support for Symfony 7 by @VincentLanglet in #7453
- docs: drop list.rst and code behind it by @keradus in #7436
- DX: more usage of spaceship operator by @keradus in #7438
- docs: remove Gitter mentions by @smnandre in #7441
- CI: early compatibility checks with Symfony 7 by @keradus in #7431
- chore: IntegrationTest - move support of php< requirement to main Integration classes by @keradus in #7448
- DX: Ability to run Fixer on PHP8.3 for development by @Wirone in #7449
- DX: Docker clean up by @Wirone in #7450
- DX: Put
Preg
's last error message in exception message by @danog in #7443 - DX: describe command - for rules, list also sets that are including them by @keradus in #7419
- test: Improve
AbstractIntegrationTestCase
description by @Wirone in #7452 - CI: drop Symfony ^7 incompat exceptions of php-coveralls and cli-executor by @keradus in #7455
New Contributors
Full Changelog: v3.38.2...v3.39.0