Releases: PHP-CS-Fixer/PHP-CS-Fixer
Releases · PHP-CS-Fixer/PHP-CS-Fixer
v3.58.1 7th Gear
What's Changed
- fix:
PhpUnitTestClassRequiresCoversFixer
- do not add annotation when attribute with leading slash present by @kubawerlos in #8054 - fix:
ConstantCaseFixer
- do not change class constant usages by @kubawerlos in #8055
Full Changelog: v3.58.0...v3.58.1
v3.58.0 7th Gear
What's Changed
- feat(GroupImportFixer): Ability to configure which type of imports should be grouped by @Wirone in #8046
- fix:
PhpUnitSizeClassFixer
- do not add annotation when there are attributes by @kubawerlos in #8044 - fix:
ConstantCaseFixer
- do not change namespace by @kubawerlos in #8004 - fix:
PhpUnitTestClassRequiresCoversFixer
- attribute detection when class isreadonly
by @kubawerlos in #8042 - fix:
PhpUnitAttributesFixer
- do not add attribute if already present by @kubawerlos in #8043 - fix: clear
Tokens::$blockStartCache
andTokens::$blockEndCache
when callingTokens::setCode
by @kubawerlos in #8051 - fix: handle PHP closing tag with
simplified_null_return
correctly by @FeBe95 in #8049 - chore(doc): Use FQCN for parallel config in documentation by @joelwurtz in #8029
- chore: RandomApiMigrationFixer - do not modify configuration property by @keradus in #8033
- chore: update PHPStan by @kubawerlos in #8045
- chore: fix typo in
PhpUnitTestClassRequiresCoversFixerTest
by @kubawerlos in #8047 - chore: Tokens::setCode - further improvements to cache by @keradus in #8053
- docs: fix deprecated string interpolation style by @FeBe95 in #8036
- docs: Add missing imports in a cookbook about creating custom rules by @jlecordier in #8031
- docs: global_namespace_import - simplify allowed config types by @keradus in #8023
New Contributors
- @joelwurtz made their first contribution in #8029
- @jlecordier made their first contribution in #8031
- @FeBe95 made their first contribution in #8036
Full Changelog: v3.57.2...v3.58.0
v3.57.2 7th Gear
What's Changed
- fix:
PhpUnitTestClassRequiresCoversFixer
- attribute detection when class is final by @atomiix in #8016 - fix: Support named args in
ParallelConfigFactory::detect()
by @Wirone in #8026 - chore: Report used memory to 2 decimal digits only by @mvorisek in #8017
- docs: Improve Docker usage example by @Wirone in #8021
- docs: better ConfigurableFixer allowed types by @keradus in #8024
New Contributors
Full Changelog: v3.57.1...v3.57.2
v3.57.1 7th Gear
What's Changed
- chore: update PHPDoc in
Preg::matchAll
by @kubawerlos in #8012 - fix: Runner - handle no files while in parallel runner by @keradus in #8015
Full Changelog: v3.57.0...v3.57.1
v3.57.0 7th Gear
What's Changed
Full Changelog: v3.56.2...v3.57.0
v3.56.2 15 Keys Accelerate
v3.56.1 15 Keys Accelerate
What's Changed
- chore: improve PHPDoc typehints by @kubawerlos in #7994
- CI: Better array shape in
PhpUnitDedicateAssertFixer
(fixes PHPStan/PHP8.3 failures) by @kubawerlos in #7999 - fix:
ConstantCaseFixer
- do not touch typed constants by @kubawerlos in #7998
Full Changelog: v3.56.0...v3.56.1
v3.56.0 15 Keys Accelerate
v3.55.0 15 Keys Accelerate
What's Changed
- feat: Introduce
OrderedAttributesFixer
by @HypeMC and @Wirone in #7395 - fix:
PhpUnitAttributesFixer
- fix for#[RequiresPhp]
exceeding its constructor parameters by @paulbalandan in #7966 - DX: Prevent having deprecated fixers listed as successors of other deprecated fixers by @kubawerlos and @Wirone in #7967
- DX: Resolve/Ignore PHPStan issues on level 6 + bump to level 7 with new baseline by @Wirone in #7971
- DX: do not typehint fixed-length arrays as lists by @kubawerlos in #7974
- DX: use
list
type in PHPDocs by @kubawerlos in #7975 - DX: allow to enforce cache mechanism by env var by @keradus in #7983
- CI: Fix calculating diff between branches in PRs by @Wirone in #7973
- CI: Ad-hoc fix for MacOS jobs by @Wirone in #7970
- test: don't count comment after class as another classy element by @keradus in #7982
- chore:
RuleSetsTest
- assert that Fixer is configurable by @keradus in #7961 - chore: Tokens should be always a list by @mvorisek in #7698
- chore: few SCA fixes and dev-tools update by @keradus in #7969
- chore: Normalize implicit backslahes in single quoted strings internally by @mvorisek in #7786
- chore: Preg - drop half-support for array-pattern by @keradus in #7976
- chore: fix PHPDoc types by @keradus in #7977
- chore: PHPDoc - rely on strict list/tuple/shape instead of array by @keradus in #7978
- chore: narrow PHPDoc types by @kubawerlos in #7979
- chore:
PhpUnitDataProviderNameFixer
- follow config creation pattern by @keradus in #7980 - chore: re-use
CodeHasher
by @keradus in #7984 - chore: syntax sugar by @keradus in #7986
Full Changelog: v3.54.0...v3.55.0
v3.54.0 15 Keys Accelerate
What's Changed
- feat: introduce
PhpUnitAttributesFixer
by @kubawerlos in #7831 - fix: Remove Infection during Docker release by @Wirone in #7937
- fix:
PhpUnitTestClassRequiresCoversFixer
- do not add annotation when there are attributes by @kubawerlos in #7880 - fix:
PhpUnitMethodCasingFixer
- do not double underscore by @kubawerlos in #7949 - fix:
FullyQualifiedStrictTypesFixer
- do not add imports before PHP opening tag by @kubawerlos in #7955 - DX: there is no namespace if there is no PHP code by @kubawerlos in #7953
- DX: cleanup
FullyQualifiedStrictTypesFixerTest
by @kubawerlos in #7954 - DX: Improve internal dist config for Fixer by @Wirone in #7952
- DX: update .gitattributes by @kubawerlos in #7931
- DX: cleanup
PhpdocNoAccessFixerTest
by @kubawerlos in #7933 - test: Ignore PHP version related mutations by @Wirone in #7935
- DX: cleanup
PhpUnitStrictFixerTest
by @kubawerlos in #7938 - DX: Improve issue templates by @Wirone in #7942
- DX: cleanup
PhpUnitMethodCasingFixerTest
by @kubawerlos in #7948 - CI: check if proper array key is declared by @keradus in #7912
- chore: Properly determine self-approval trigger commit by @Wirone in #7936
- chore: Revert ref for self-approval Git checkout by @Wirone in #7944
Full Changelog: v3.53.0...v3.54.0