Releases: PHP-CS-Fixer/PHP-CS-Fixer
Releases · PHP-CS-Fixer/PHP-CS-Fixer
v3.75.0 Persian Successor
What's Changed
- feat:
ClassAttributesSeparationFixer
- add support for asymmetric visibility by @kubawerlos in #8518 - fix:
NativeFunctionInvocationFixer
- fix for property hooks by @kubawerlos in #8540 - deps: bump the phpstan group in /dev-tools with 2 updates by @dependabot in #8537
- chore:
FunctionsAnalyzerTest
cleanup by @kubawerlos in #8539 - chore: add return types for data providers for fixers by @kubawerlos in #8542
- chore: add return types for data providers for non-fixers by @kubawerlos in #8543
- chore: add return types for remaining data providers by @kubawerlos in #8544
- chore: make data providers key type
string
if all the keys are strings by @kubawerlos in #8545 - chore: SwitchContinueToBreakFixerTest - improve test case descriptions/typehint by @keradus in #8546
- test: ProjectCodeTest::testDataProvidersDeclaredReturnType - allow for int as iterable keys by @keradus in #8548
- chore: make data providers key type
int
if all the keys are strings by @kubawerlos in #8550
Full Changelog: v3.74.0...v3.75.0
v3.74.0 Persian Successor
What's Changed
- feat: add
--format=@auto
by @keradus in #8513 - fix:
BracesPositionFixer
- do not create two consecutive whitespace tokens by @kubawerlos in #8496 - fix:
PhpUnitMethodCasingFixer
- do not touch anonymous class by @kubawerlos in #8463 - fix:
PhpUnitAttributesFixer
- handle parentheses after data provider method name by @kubawerlos in #8510 - fix:
MbStrFunctionsFixer
- fix imports with leading backslash by @kubawerlos in #8507 - fix:
OrderedImportsFixer
- fix syntax error with grouped use statement and multiple use with comma by @kubawerlos in #8483 - fix:
OrderedImportsFixer
- do not take the braces part in grouped imports into account by @kubawerlos in #8459 - fix:
NoUnreachableDefaultArgumentValueFixer
- do not crash on property hook by @kubawerlos in #8512 - deps: upgrade
PHPStan/*
by @keradus in #8524 - CI: fix code coverage job by @kubawerlos in #8520
- CI: ParaUnit not used under MacOS by @keradus in #8528
- chore:
Preg
- improve types by @keradus in #8527 - chore: update return type of
FixerOptionInterface::getAllowedValues
by @kubawerlos in #8530 - chore: make options that have default and allowed sets the same size the same array by @kubawerlos in #8529
- deps: update PHPStan by @kubawerlos in #8531
Full Changelog: v3.73.1...v3.74.0
v3.73.1 Persian Successor
What's Changed
- fix:
OrderedClassElementsFixer
- do not crash on property hook by @kubawerlos in #8517
Full Changelog: v3.73.0...v3.73.1
v3.73.0 Persian Successor
What's Changed
- feat: add support for asymmetric visibility to Doctrine's fixers by @kubawerlos in #8415
- fix:
MethodArgumentSpaceFixer
- handle when nested in HTML by @kubawerlos in #8503 - fix:
GeneralPhpdocTagRenameFixer
- do not rename keys in array shape definition by @kubawerlos in #8477 - test: run code coverage on PHP 8.4 by @kubawerlos in #8448
- refactor:
TokensAnalyzerTest
- better testisArray
andisArrayMultiLine
by @kubawerlos in #8504 - refactor:
Tokenizer
hash metode usingxxHash
by @ddevsr in #8491 - DX: cleanup
NoExtraBlankLinesFixerTest
by @kubawerlos in #8505 - DX: remove more duplicated test methods by @kubawerlos in #8506
- DX: for duplicated test methods check methods without parameters by @kubawerlos in #8508
- chore: update
checkbashisms
to 2.25.5 by @kubawerlos in #8519
New Contributors
Full Changelog: v3.72.0...v3.73.0
v3.72.0 Persian Successor
What's Changed
- fix:
MbStrFunctionsFixer
- fix imports by @kubawerlos in #8474 - deps: Upgrade PHPStan to 2.1.8 by @keradus in #8489
- fix:
TrailingCommaInMultilineFixer
- handle empty match body by @kubawerlos in #8480 - deps: upgrade few dev-deps by @keradus in #8490
- feat:
StatementIndentationFixer
- handle property hooks by @kubawerlos in #8492 - fix:
VisibilityRequiredFixer
- handle property hooks by @kubawerlos in #8495 - refactor: Runner - unify paths used when using parallel runner by @keradus in #8488
- refactor: generalize CodeHasher into Hasher by @keradus in #8500
- DX: add trailing comma to multiline auto-generated types by @kubawerlos in #8499
- refactor: use Hasher instead of md5 directly by @keradus in #8501
Full Changelog: v3.71.0...v3.72.0
v3.71.0 Persian Successor
What's Changed
- feat: OrderedImportsFixer - deprecate length sorting algorithm by @keradus in #8473
- test: NameQualifiedTransformerTest - correct the test case by @keradus in #8471
- refactor: add
FullyQualifiedNameAnalyzer
by @kubawerlos in #8048 - refactor: codeHash - update when it's (re-)generated by @keradus in #8470
- refactor:
SwitchAnalyzer
- improve performance by @keradus in #8407 - DX: cleanup
PhpdocNoAliasTagFixerTest
by @kubawerlos in #8476 - fix:
StatementIndentationFixer
- return in braceless if by @BergenSoft in #8479 - chore: update type in
SingleSpaceAroundConstructFixerTest::provideFixWithElseIfCases
by @kubawerlos in #8481 - chore: update type in
SingleSpaceAroundConstructFixerTest::provideFixWithIfCases
by @kubawerlos in #8482 - fix:
SingleSpaceAroundConstructFixer
- handle alternative syntax by @timsmid in #8317 - deps: bump phpstan/phpstan from 2.1.6 to 2.1.7 in /dev-tools in the phpstan group by @dependabot in #8485
- fix:
PhpdocAlignFixer
- align correctly type with UTF8 characters by @kubawerlos in #8486 - fix:
BinaryOperatorSpacesFixer
- do not break alignment of UTF-8 array keys by @kubawerlos in #8484
New Contributors
- @BergenSoft made their first contribution in #8479
- @timsmid made their first contribution in #8317
Full Changelog: v3.70.2...v3.71.0
v3.70.2 Persian Successor
What's Changed
- deps: upgrade deep dev-tools deps by @keradus in #8472
- fix:
MbStrFunctionsFixer
must run beforeNativeFunctionInvocationFixer
by @kubawerlos in #8466 - fix:
MethodArgumentSpaceFixer
- fix nested calls forensure_fully_multiline
option by @geecu in #8469
New Contributors
Full Changelog: v3.70.1...v3.70.2
v3.70.1 Persian Successor
What's Changed
- fix:
PhpUnitSizeClassFixer
must run beforePhpUnitAttributesFixer
by @kubawerlos in #8457 - DX: cleanup
OrderedImportsFixerTest
by @kubawerlos in #8458
Full Changelog: v3.70.0...v3.70.1
v3.70.0 Persian Successor
What's Changed
- feat: Add
PhpUnitDataProviderMethodOrderFixer
fixer by @mvorisek in #8225 - feat:
TypeDeclarationSpacesFixer
- Fix whitespace between const type and const name. by @obresoft in #8442 - feat:
PhpCsFixer
ruleset: useoperator_linebreak
rule for all operators by @mvorisek in #8417 - feat:
PhpUnitMethodCasingFixer
to support PHPUnit'sTest
attribute by @obresoft in #8451 - feat:
HeaderCommentFixer
- allow validators by @keradus in #8452 - chore: extend bug report template by @keradus in #8447
- fix:
CommentsAnalyzer
- allow other forms of assignment as valid structural elements for phpdocs by @paulbalandan in #8371 - deps: bump phpstan/phpstan from 2.1.5 to 2.1.6 in /dev-tools in the phpstan group by @dependabot in #8453
- deps: bump alpine from 3.21.2 to 3.21.3 by @dependabot in #8454
- chore: extend bug report template - more installation options by @keradus in #8450
- CI: phpstan-symfony - add entry point for console by @keradus in #8292
- fix:
PhpUnitTestClassRequiresCoversFixer
must run beforePhpUnitAttributesFixer
by @kubawerlos in #8444 - test: fix
CheckCommandTest::testDryRunModeIsUnavailable
to correctly check that option--dry-run
is unavailable by @kubawerlos in #8438
New Contributors
Full Changelog: v3.69.1...v3.70.0
v3.69.1 Persian Successor
What's Changed
- fix:
PhpUnitAttributesFixer
- convert correctly version constraint by @kubawerlos in #8439 - test:
PhpUnitAttributesFixer
must run beforeNoEmptyPhpdocFixer
by @kubawerlos in #8443
Full Changelog: v3.69.0...v3.69.1