Releases: PHP-CS-Fixer/PHP-CS-Fixer
Releases · PHP-CS-Fixer/PHP-CS-Fixer
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
v3.53.0 15 Keys
What's Changed
- fix:
PhpdocArrayTypeFixer
- JIT stack limit exhausted by @kubawerlos in #7895 - feat:
@PHP84Migration
introduction by @keradus in #7774 - test: Introduce Infection for mutation tests by @Wirone in #7874
- CI: Improve Infection setup by @Wirone in #7913
- chore: Use
list
overarray
in more places by @keradus in #7905 - feat: Add trailing comma in multiline to PER-CS 2.0 by @michaelvickersuk in #7916
- feat: Introduce
AttributeAnalysis
by @HypeMC in #7909 - CI: allow for self-approvals for maintainers by @keradus in #7921
- fix: Constant invocation detected in typed constants by @SharkyKZ in #7892
- DX: reduce
array_filter
function usages by @kubawerlos in #7923 - DX: update
phpstan/phpstan-strict-rules
by @kubawerlos in #7924 - DX: update actions producing warnings by @kubawerlos in #7925
- DX: update actions producing warnings by @kubawerlos in #7928
- DX: remove duplicated character from
trim
call by @kubawerlos in #7930 - CI: no need to trigger enable auto-merge when self-approve by @keradus in #7929
New Contributors
- @michaelvickersuk made their first contribution in #7916
Full Changelog: v3.52.1...v3.53.0
v3.52.1 15 Keys
What's Changed
- fix:
PhpCsFixer\Tokenizer\Tokens::setSize
return type by @kubawerlos in #7900 - fix: StatementIndentationFixer - do not crash on ternary operator in class property by @kubawerlos in #7899
Full Changelog: v3.52.0...v3.52.1
v3.52.0 15 Keys
What's Changed
- feat:
@Symfony:risky
- addno_unreachable_default_argument_value
by @gharlan in #7863 - feat:
PhpCsFixer
ruleset - enablenullable_type_declaration_for_default_null_value
by @mvorisek in #7870 - feat: Add
array_indentation
toPER-CS2.0
ruleset by @VincentLanglet in #7881 - feat: Add support for callable template in PHPDoc parser by @mvorisek in #7084
- fix:
no_useless_concat_operator
- do not break variable by @tamiroh in #7827 - fix:
TokensAnalyzer
- handle unary operator in arrow functions by @kubawerlos in #7862 - fix:
TypeExpression
- fix "JIT stack limit exhausted" error by @kubawerlos in #7843 - fix: Constant invocation detected in DNF types by @SharkyKZ in #7869
- fix: Correctly indent multiline constants and properties by @julienfalque in #7875
- chore: fix PHP 8.4 deprecations by @kubawerlos in #7894
- chore: fix PHPStan 1.10.60 issues by @kubawerlos in #7873
- chore: list over array in more places by @keradus in #7876
- chore: replace template with variable in Preg class by @kubawerlos in #7882
- chore: update PHPStan by @kubawerlos in #7871
- depr:
nullable_type_declaration_for_default_null_value
- deprecate option that is against@PHP84Migration
by @keradus in #7872 - docs: Fix typo by @BenMorel in #7889
New Contributors
Full Changelog: v3.51.0...v3.52.0
v3.51.0 Insomnia
What's Changed
- feat:
@Symfony
- add nullable_type_declaration by @keradus in #7856 - chore: add missing tests for non-documentation classes by @kubawerlos in #7848
- chore: do not perform type analysis in tests by @kubawerlos in #7852
- chore: list over array in more places by @keradus in #7857
- chore: tests documentation classes by @kubawerlos in #7855
- test: fix wrong type in param annotation by @keradus in #7858
Full Changelog: v3.50.0...v3.51.0
v3.50.0 Insomnia
What's Changed
- feat: Ability to remove unused imports from multi-use statements by @Wirone in #7815
- feat: Support shortening symbols from multi-use statements (only classes for now) by @Wirone in #7816
- feat: allow PHPUnit 11 by @kubawerlos in #7824
- feat:
MbStrFunctionsFixer
- add support formb_trim
,mb_ltrim
andmb_rtrim
functions by @kubawerlos in #7840 - feat:
no_superfluous_phpdoc_tags
- introduceallow_hidden_params
option by @keradus in #7743 - feat:
NoEmptyPhpdocFixer
- do not leave empty line after removing PHPDoc by @kubawerlos in #7820 - feat: introduce
PhpdocArrayTypeFixer
by @kubawerlos in #7812 - feat: PhpUnitTestCaseStaticMethodCallsFixer - cover PHPUnit v11 methods by @kubawerlos in #7822
- feat: Support for multi-use statements in
NamespaceUsesAnalyzer
by @Wirone in #7814 - fix:
ExecutorWithoutErrorHandler
- remove invalid PHP 7.4 type by @kubawerlos in #7845 - fix:
fully_qualified_strict_types
must honor template/local type identifiers by @mvorisek in #7724 - fix:
MethodArgumentSpaceFixer
- do not break heredoc/nowdoc by @kubawerlos in #7828 - fix:
NumericLiteralSeparatorFixer
- do not changefloat
toint
when there is nothing after the dot by @kubawerlos in #7805 - fix:
PhpUnitStrictFixer
- do not crash on property having the name of method to fix by @kubawerlos in #7804 - fix:
SingleSpaceAroundConstructFixer
- correctly recognise multiple constants by @kubawerlos and @Wirone in #7700 - fix:
TypeExpression
- handle array shape key with dash by @kubawerlos in #7841 - fix: do not use wrongly named arguments in data providers by @kubawerlos in #7823
- fix: Ensure PCNTL extension is always installed in Docker by @Wirone in #7782
- fix: PhpdocListTypeFixer - support key types containing
<…>
by @gharlan in #7817 - fix: Proper build target for local Docker Compose by @Wirone in #7834
- fix: union PHPDoc support in
fully_qualified_strict_types
fixer by @mvorisek in #7719 - chore: add missing types by @kubawerlos in #7842
- chore: BlocksAnalyzer - raise exception on invalid index by @keradus in #7819
- chore: DataProviderAnalysis - expect list over array by @keradus in #7800
- chore: do not use
@large
on method level by @kubawerlos in #7832 - chore: do not use
@medium
on method level by @kubawerlos in #7833 - chore: Fix typos by @tamiroh in #7835
- chore: rename variables by @kubawerlos in #7847
- chore: some improvements around array typehints by @keradus in #7799
- CI: fix PHP 8.4 job by @kubawerlos in #7829
- DX: Include
symfony/var-dumper
in dev tools by @Wirone in #7795
New Contributors
Full Changelog: v3.49.0...v3.50.0
v3.49.0 Insomnia
What's Changed
- feat: introduce
string_implicit_backslashes
asescape_implicit_backslashes
replacement by @mvorisek in #7669 - feat: introduce
PhpdocListTypeFixer
by @kubawerlos in #7796 - feat: Add
ordered_types
to@Symfony
by @VincentLanglet in #7356 - feat: update Symfony.nullable_type_declaration_for_default_null_value config by @keradus in #7773
- feat:
@PhpCsFixer
ruleset - enablephp_unit_data_provider_static
by @mvorisek in #7685 - fix:
ClassKeywordFixer
must run beforeFullyQualifiedStrictTypesFixer
by @krzysztofrewak in #7767 - fix:
LowercaseStaticReferenceFixer
- do not change typed constants by @kubawerlos in #7775 - fix:
TypeExpression
- do not break type usingwalkTypes
method by @kubawerlos in #7785 - fix:
ClassDefinitionFixer
for anonymous class with PHPDoc/attribute on separate line by @mvorisek in #7546 - fix:
function_to_constant
get_class()
replacement by @mvorisek in #7770 - fix: Allow using cache when running in Docker distribution by @Wirone in #7769
- fix:
PhpdocTypesFixer
- handle more complex types by @kubawerlos in #7791 - docs: Docker - use
gitlab
reporter in GitLab integration example by @keradus in #7764 - docs: Docker in CI - don't suggest command that overrides path from config file by @keradus in #7763
- DX: check deprecations exactly by @keradus in #7742
- chore:
DescribeCommand
- better handling of deprecations by @kubawerlos in #7778 - chore: Exclude
topic/core
issues/PRs from Stale Bot by @Wirone in #7788 - chore: add missing key types in PHPDoc types by @kubawerlos in #7779
- chore(checkbashisms): update to 2.23.7 by @kubawerlos in #7780
Full Changelog: v3.48.0...v3.49.0
v3.48.0 Small Changes
What's Changed
- feat:
PhpdocTypesOrderFixer
Support DNF types by @smnandre in #7732 - fix: work correctly for a switch/case with ternary operator by @kubawerlos in #7756
- fix:
NoUselessConcatOperatorFixer
- do not remove new line by @kubawerlos in #7759 - fix: Support shebang in fixers operating on PHP opening tag by @mvorisek in #7687
- docs: Add PHP-CS-Fixer integration in a GitHub Action step by @Arkanii in #7757
- chore:
FullyQualifiedStrictTypesFixer
must run beforeOrderedInterfacesFixer
by @kubawerlos in #7762
New Contributors
Full Changelog: v3.47.1...v3.48.0