github PHP-CS-Fixer/PHP-CS-Fixer v3.18.0
v3.18.0 Triangle

latest releases: v3.57.1, v3.57.0, v3.56.2...
11 months ago

What's Changed

  • bug: Fix tokenizing of type hints by @SpacePossum in #7054
  • bug: FullyQualifiedStrictTypesFixer - fix shortening when namespace is not empty and import exists by @Wirone in #7027
  • bug: NoUnneededControlParenthesesFixer PHP8.0 null-safe operator by @SpacePossum in #7056
  • bug: PhpdocToCommentFixer support for enum cases by @Wirone in #7040
  • bug: CompactNullableTypehintFixer - fix for whitespace between ? and static by @paulbalandan in #6993
  • bug: consider function modifiers for statement_indentation by @msbit in #6978
  • bug: Exclude $this from TernaryToNullCoalescingFixer by @kylekatarnls in #7052
  • bug: False positive on used imports when docblock includes it with mismatching case by @bradietilley in #6909
  • bug: Fix return_assignment not formatting when variables are used in catch and finally by @Yurunsoft in #6960
  • bug: Fix TypeExpression::allowsNull() with nullable by @mvorisek in #7000
  • bug: Fix chained calls semicolon indent in switch case by @julienfalque in #7045
  • bug: Fix multiline_whitespace_before_semicolons for echo tags by @edsrzf in #7019
  • bug: Fix phpDoc align when there is inconsistent spacing after comment star by @mvorisek in #7012
  • bug: Fix phpdoc parsing without PCRE JIT by @mvorisek in #7031
  • bug: Fix PhpdocVarWithoutNameFixer with Closure with $this by @mvorisek in #6979
  • bug: Improve definition of conflicting fixers by @Wirone in #7066
  • bug: LambdaNotUsedImportFixer - fix for anonymous class with a string argument by @kubawerlos in #6972
  • bug: ListFilesCommand - fix computing of relative path by @paulbalandan in #7028
  • bug: make php_unit_namespaced less greedy by @Wirone in #6952
  • bug: PhpdocToCommentFixer - fix for PHPDoc before fn by @kubawerlos in #6973
  • bug: Restructure PER-CS rule sets by @Crell in #6707
  • bug: SelfStaticAccessor - fix static access inside enums by @paulbalandan in #7024
  • bug: SingleSpaceAroundConstructFixer - fix more cases involving static by @paulbalandan in #6995
  • DX: add more tests to CommentsAnalyzer by @kubawerlos in #7041
  • DX: Cleanup duplicate files in finder by @paulbalandan in #7042
  • DX: ControlCaseStructuresAnalyzerTest - cleanup by @keradus in #6874
  • DX: Fix warning when running test on PHP<8 by @SpacePossum in #7008
  • DX: handle @ in PR title by @keradus in #6982
  • DX: officially deprecate internal Utils anti-pattern class by @keradus in #7039
  • DX: Remove Fabbot.io conditional configuration by @Wirone in #7038
  • DX: rename data providers by @kubawerlos in #7058
  • DX: Use actions/stale to handle stale issues and pull requests by @localheinz in #5085
  • DX: Use Utils::naturalLanguageJoin() in implode calls by @paulbalandan in #7032
  • feature: Add support for custom method placement in ordered_class_elements by @bakerkretzmar in #6360
  • feature: Allow case sensitive order for OrderedClassElementsFixer by @alexndlm in #7020
  • feature: PHP83 - Add CT and block type for Dynamic class constant fetch by @SpacePossum in #7004
  • feature: Support Attributes for FinalClassFixer by @andythorne in #6893
  • minor: "Callback" must not be fixed to "callback" by default by @mvorisek in #7011
  • minor: SelfStaticAccessorFixer improvements for enums by @SpacePossum in #7026
  • minor: SingleSpaceAroundConstructFixer - support space before as by @paulbalandan in #7029
  • minor: UseArrowFunctionsFixer - run before FunctionDeclarationFixer by @paulbalandan in #7065
  • minor: ClassDefinitionFixer - handle attributes and readonly in anonymous class definitions by @SpacePossum in #7014
  • minor: FixerFactory::getFixersConflicts - better type hinting by @keradus in #7044
  • minor: PHP8.3 - Fix TokensAnalyzer::isAnonymousClass support for readonly by @SpacePossum in #7013
  • minor: PHP8.3 - Typed class constants - handle nullable by transformer by @SpacePossum in #7009
  • minor: Reduce phpDoc type parser complexity from O(n^2) to O(nlog(n)) by @mvorisek in #6988
  • minor: ReturnAssignmentFixer - Better handling of anonymous classes by @SpacePossum in #7015
  • minor: Transfer HelpCommand::toString() to Utils by @paulbalandan in #7034
  • minor: Unify "blank lines before namespace" fixers by @Wirone in #7053
  • minor: Utils - add naturalLanguageJoin by @paulbalandan in #7022

New Contributors

Full Changelog: v3.17.0...v3.18.0

Don't miss a new PHP-CS-Fixer release

NewReleases is sending notifications on new releases.