Skip to content

Releases: PHP-CS-Fixer/PHP-CS-Fixer

v3.87.1 Alexander

02 Sep 15:28
v3.87.1
2f51703
Compare
Choose a tag to compare

What's Changed

  • chore: AbstractProxyFixer - require non-empty list of proxy fixers by @gharlan in #9010
  • deps: update justinrainbow/json-schema by @keradus in #9019

Full Changelog: v3.87.0...v3.87.1

v3.87.0 Alexander

02 Sep 11:03
v3.87.0
50a13c4
Compare
Choose a tag to compare

What's Changed

  • feat: introduce @PHP85Migration set by @keradus in #8941
  • feat: add PhpdocTagNoNamedArgumentsFixer by @kubawerlos in #8906
  • feat: deprecate using config from passed path CLI argument by @keradus in #8923
  • feat: upgrade @PhpCsFixer set towards new defaults of selected rules by @keradus in #8981
  • fix: PhpdocOrderFixer when phpstan- / psalm- order is specified by @acoulton in #8853
  • fix: PhpdocOrderFixer - do not allow duplicated tags in configuration by @kubawerlos in #8945
  • DX: remove methods for kind checks by @kubawerlos in #8954
  • DX: unify class/interface/trait naming by @kubawerlos in #8957
  • CI: update checkbashisms by @keradus in #8951
  • CI: more self-fixing checks on lowest/highest PHP by @keradus in #8943
  • CI: add vendor/bin/phpunit --check-php-configuration by @kubawerlos in #8934
  • CI: Re-enable Paraunit in CI under PHP 8.5 by @Jean85 in #8964
  • refactor: add DocBlockAnnotation trait by @kubawerlos in #8953
  • test: extend ProjectCodeTest to check classy names in tests too by @keradus in #8959
  • test: NoUnneededControlParenthesesFixer - add tests for "clone with" by @kubawerlos in #8937
  • test: update pipe operator tests after pipe & arrow function combination was prohibited by @kubawerlos in #8990
  • test: PhpdocNoAliasTagFixerTest - add test for @const to @var by @kubawerlos in #8998
  • test: TypeDeclarationSpacesFixer - demonstrate PHP 8.3 related config doesn't harm older envs by @keradus in #8999
  • test: split test so more of them can run under Windows by @keradus in #8986
  • chore: PHPUnit - enforce no memory_limit by @keradus in #8940
  • chore: extract token types for PHPStan by @keradus in #8925
  • refactor: PhpdocOrderFixer - calculate order only once by @kubawerlos in #8944
  • chore: revert wrong _PhpTokenArray usages by @gharlan in #8947
  • chore: OrderedClassElementsFixer - use private method instead of anonymous function by @gharlan in #8931
  • chore: CheckCommand - use regex instead of explode & substr by @gharlan in #8936
  • chore: ClassAttributesSeparationFixer - improve code by @gharlan in #8950
  • chore: sort .gitattributes by @keradus in #8966
  • chore: ignore deprecations in token_get_all by @gharlan in #8963
  • chore: EregToPregFixer - use constant instead of static property by @gharlan in #8978
  • chore: deprecate Annotation::getTagsWithTypes in favor of TAGS_WITH_TYPES constant by @gharlan in #8977
  • chore: convert private methods to constants by @gharlan in #8976
  • chore: AbstractPhpdocTypesFixer - remove $tags property by @gharlan in #8980
  • chore: minor CS fixes by @keradus in #8979
  • chore: handle fixer options without allowed types defined by @gharlan in #8973
  • chore: use non-empty-list where appropriate by @gharlan in #8972
  • chore: PhpdocTagNoNamedArgumentsFixer - better example by @keradus in #8971
  • chore: unify entries in .gitignore by @keradus in #8982
  • chore: apply phpdoc_tag_no_named_arguments by @keradus in #8969
  • chore: configure phpdoc_tag_no_named_arguments by @keradus in #8970
  • chore: CS - re-apply rules by @keradus in #8988
  • chore: rework ci-integration.sh by @keradus in #8989
  • chore: Add TODO for ENUM conversion in ProgressOutputType by @keradus in #8991
  • chore: always use JSON_THROW_ON_ERROR by @keradus in #8993
  • chore: Tokens - override nullability of SplFixedArray by @gharlan in #9001
  • chore: apply (partially) multiline_string_to_heredoc by @gharlan in #9002
  • chore: Tokens::offsetSet - explicit validation of input by @keradus in #9004
  • chore: exclude files in .gitattributes by @ruudk in #8960
  • chore: PhpUnitDedicateAssertFixer - improve code for phpstan by @gharlan in #9011
  • chore: FullyQualifiedStrictTypesFixer - ensure matching number of opening/closing braces by @gharlan in #9009
  • chore: use get_debug_type and ::class in exception messages by @gharlan in #9006
  • chore: PhpdocParamOrderFixer - improve/simplify code by @gharlan in #9012
  • chore: remove not-needed reset-call by @keradus in #9014
  • chore: unify env var FAST_LINT_TEST_CASES into PHP_CS_FIXER_FAST_LINT_TEST_CASES by @keradus in #8992
  • deps: remove php-cs-fixer/accessible-object by @kubawerlos in #8948
  • deps: update dev-tools by @keradus in #9007
  • deps: minor upgrades by @keradus in #8983
  • deps: bump actions/checkout from 4 to 5 by @dependabot[bot] in #8938
  • deps: bump shipmonk/dead-code-detector from 0.13.1 to 0.13.2 in /dev-tools by @dependabot[bot] in #8939
  • deps: drop support for justinrainbow/json-schema:^5 by @keradus in #8984
  • docs: update README.md by @keradus in #9015
  • docs: README.md updates by @keradus in #9013
  • docs: update README.md and CONTRIBUTING.md by @gharlan in #8974

New Contributors

Full Changelog: v3.86.0...v3.87.0

v3.86.0 Alexander

13 Aug 22:36
v3.86.0
4a952bd
Compare
Choose a tag to compare

What's Changed

  • feat: NoSuperfluousPhpdocTagsFixer - support multiline array shapes by @kubawerlos in #8903
  • feat: console application - add completion support by @gharlan in #8887
  • feat: introduce PER-CS3.0 rulsets by @gharlan in #8841
  • feat: update @Symfony and @PhpCsFixer sets by @keradus in #8930
  • fix: PhpdocToParamTypeFixerTest - handle types_map for union-types by @keradus in #8926
  • chore: @phpstan-ignore for php version check by @gharlan in #8920
  • chore: PhpUnitTestAnnotationFixer - use foreach instead of for by @gharlan in #8911
  • chore: AbstractTransformerTestCase - better virtual type naming by @keradus in #8927
  • chore: add TODO for v4 by @keradus in #8912
  • chore: do not call Reflection*::setAccessible() in PHP >= 8.1 by @W0rma in #8907
  • chore: document .env.example by @keradus in #8901
  • chore: fix @todo annotation casing by @keradus in #8921
  • chore: switch to official checkstyle.xsd by @keradus in #8910
  • chore: unify future default of after_heredoc by @keradus in #8924
  • CI: allow PHP 8.5 for failure, till it's officially released and we get the stable support by @keradus in #8928
  • ci: run tests under 8.5 via PHPUnit, as ParaUnit failing by @keradus in #8933
  • CI: temporarily skip problematic tests under Sf v8 by @keradus in #8919
  • deps: bump icanhazstring/composer-unused from 0.9.3 to 0.9.4 in /dev-tools by @dependabot[bot] in #8905
  • deps: update and bump dev-tools/composer by @keradus in #8915
  • docs: extend FullOpeningTagFixer samples by @keradus in #8913
  • docs: extend OperatorLinebreakFixer samples by @keradus in #8914
  • docs: more explicit msg for stop using deprecated code by @keradus in #8922
  • DX: .gitignore - ignore php-cs-fixer.cache, as it's existance is possible when using env var by @keradus in #8929

New Contributors

Full Changelog: v3.85.1...v3.86.0

v3.85.1 Alexander

29 Jul 22:23
v3.85.1
2fb6d7f
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.85.0...v3.85.1

v3.85.0 Alexander

29 Jul 21:26
v3.85.0
a1eb476
Compare
Choose a tag to compare

What's Changed

  • feat: ArrayIndentationFixer - handle closures inside attributes by @gharlan in #8888
  • feat: NullableTypeDeclarationFixer - support final promoted properties by @kubawerlos in #8885
  • feat: OperatorLinebreakFixer - support pipe operator by @kubawerlos in #8891
  • feat: PhpdocTypesFixer - support multiline array shapes by @kubawerlos in #8893
  • fix: BracesPositionFixer - handle property hooks correctly by @kubawerlos in #8886
  • fix: NullableTypeDeclarationFixer - handle abstract and final properties by @kubawerlos in #8876
  • fix: PhpdocLineSpanFixer - handle promoted properties by @gharlan in #8897
  • fix: PhpUnitDataProviderNameFixer - fix for multiple providers defined by attributes for one test method by @kubawerlos in #8849
  • fix: TernaryOperatorSpacesFixer - handle instanceof static by @gharlan in #8879
  • fix: TypeDeclarationSpacesFixer - handle asymmetric visibility and final properties by @kubawerlos in #8900
  • fix: always reach 100% of checked files by @kubawerlos in #8861
  • chore: OrderedInterfacesFixer - make code more PHPStan friendly by @gharlan in #8866
  • chore: Token - add @phpstan-assert-if-true by @gharlan in #8865
  • chore: add initial PHP 8.5 integration test by @kubawerlos in #8871
  • chore: add tests for public API methods by @kubawerlos in #8895
  • chore: apply changes from PhpdocTypesFixer for multiline array shapes by @kubawerlos in #8894
  • chore: baseline files without error count by @gharlan in #8870
  • chore: cleanup PhpCsFixer\DocBlock\Annotation by @kubawerlos in #8892
  • chore: Command name/descriptions - use attribute and static properties by @gharlan in #8862
  • chore: Commands - unify way to define help content by @keradus in #8881
  • chore: ConfigurationResolver - add few missing v4 TODOs by @keradus in #8882
  • chore: fix booleanNot.exprNotBoolean errors by @gharlan in #8869
  • chore: fix/optimize some phpdocs by @gharlan in #8889
  • chore: more unification of PHP CS Fixer naming by @keradus in #8854
  • chore: phpstan baseline - use shipmonk/phpstan-baseline-per-identifier by @gharlan in #8844
  • chore: remove dead code by @kubawerlos in #8896
  • chore: remove unused constants by @kubawerlos in #8864
  • chore: remove useless @var annotations by @gharlan in #8867
  • chore: simplify ClassDefinitionFixer by @gharlan in #8868
  • chore: unify usage of image versions to not mention minor by @keradus in #8860
  • chore: update PHPStan by @kubawerlos in #8898
  • chore: update PHPStan extension for Preg::match by @gharlan in #8872
  • chore: wrong return values in ErrorsManager by @gharlan in #8863
  • deps: bump phpstan/phpstan from 2.1.17 to 2.1.18 in /dev-tools in the phpstan group by @dependabot[bot] in #8859
  • deps: bump the phpstan group in /dev-tools with 4 updates by @dependabot[bot] in #8890
  • docs: cleanup docs for PHP < 7.4 by @keradus in #8855
  • docs: cleanup docs for PHP 7 by @keradus in #8873
  • docs: DescribeCommand - indicate that set is deprecated, whenever mentioning one by @keradus in #8878
  • docs: ListSetsCommand,FixCommand - document possible formats in Command's definitions by @keradus in #8880
  • DX: Explicitly prevent touching non-monolithic files by @keradus in #6517

Full Changelog: v3.84.0...v3.85.0

v3.84.0 Alexander

15 Jul 18:22
v3.84.0
38dad07
Compare
Choose a tag to compare

What's Changed

  • feat: VisibilityRequiredFixer - support final promoted properties by @gharlan in #8835
  • chore: simplify isGivenKind/equals/equalsAll calls by @gharlan in #8843
  • fix: PhpdocToParamTypeFixer - do not convert types from phpstan-type, phpstan-import-type, psalm-type and psalm-import-type by @kubawerlos in #8842
  • chore: introduce FCT for few missing tokens by @keradus in #8845
  • docs: Support for new PHP version by @keradus in #8780
  • feat: Introduce NoUselessPrintfFixer by @paulbalandan in #8820
  • feat: NewExpressionParenthesesFixer - add to PHP84MigrationSet by @gharlan in #8788
  • chore: remove useless static variables for const content by @gharlan in #8836
  • fix: PhpdocToReturnTypeFixer - do not convert types from phpstan-type, phpstan-import-type, psalm-type and psalm-import-type by @kubawerlos in #8846
  • fix: PhpdocToPropertyTypeFixer - do not convert types from phpstan-type, phpstan-import-type, psalm-type and psalm-import-type by @kubawerlos in #8847
  • feat: CastSpacesFixer - support (void) cast by @kubawerlos in #8851

Full Changelog: v3.83.0...v3.84.0

v3.83.0 Alexander

14 Jul 15:41
v3.83.0
b83916e
Compare
Choose a tag to compare

What's Changed

  • feat: Suppress enable parallel runner message when only 1 core is available by @mvorisek in #8833
  • fix: NoUnreachableDefaultArgumentValueFixer - do not crash on property hook by @gharlan in #8838
  • fix: BracesPositionFixer - fix performance issue for massive files with CT::T_CURLY_CLOSE by @keradus in #8830
  • CI: mark jobs allow-to-fail declarative, instead of imperative check by @keradus in #8829
  • chore: FullyQualifiedStrictTypesFixer - reduce function calls by @gharlan in #8834
  • chore: apply native_constant_invocation for build-in consts by @keradus in #8837
  • chore: configure native_constant_invocation by @keradus in #8840
  • chore: early compat check with Symfony 8 by @keradus in #8827

Full Changelog: v3.82.2...v3.83.0

v3.82.2 Alexander

08 Jul 21:13
v3.82.2
684ed3a
Compare
Choose a tag to compare

What's Changed

  • fix: ClassAttributesSeparationFixer - handle method get aliased in trait import by @kubawerlos in #8822
  • fix: VisibilityRequiredFixer - handle promoted property with visibility and reference, but without type by @kubawerlos in #8823
  • fix: LowercaseStaticReferenceFixer - do not touch enum's cases by @kubawerlos in #8824
  • fix: StatementIndentationFixer - multi constant statement containing array by @gharlan in #8825

Full Changelog: v3.82.1...v3.82.2

v3.82.1 Alexander

08 Jul 10:19
v3.82.1
240f67b
Compare
Choose a tag to compare

What's Changed

  • fix: SingleClassElementPerStatementFixer - fix for property hooks by @kubawerlos in #8816
  • fix: OrderedClassElementsFixer - handle property hooks by @kubawerlos in #8817

Full Changelog: v3.82.0...v3.82.1

v3.82.0 Alexander

07 Jul 22:38
v3.82.0
db2a44d
Compare
Choose a tag to compare

What's Changed

  • feat: MagicConstantCasingFixer - support __PROPERTY__ by @kubawerlos in #8809
  • feat: PhpUnitDataProviderNameFixer - support data providers defined by both annotation and attribute for the same test by @kubawerlos in #8811
  • fix: PhpdocToParamTypeFixer - always handle reference in PHPDoc by @kubawerlos in #8813
  • deps: update box by @keradus in #8795
  • chore: cleanup FCTTest by @kubawerlos in #8808
  • chore: PhpdocOrderFixer.php - CPU optimization by @keradus in #8812
  • docs: fix whitespace around code examples and reference sections in rules' docs by @paulbalandan in #8810

Full Changelog: v3.81.0...v3.82.0