PHP-CS-Fixer/PHP-CS-Fixer
### [`v3.18.0`](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/HEAD/CHANGELOG.md#Changelog-for-v3180)
[Compare Source](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.17.0...v3.18.0)
- bug: Fix tokenizing of type hints ([#7054](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7054))
- bug: CompactNullableTypehintFixer - fix for whitespace between `?` and `static` ([#6993](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6993))
- bug: consider function modifiers for `statement_indentation` ([#6978](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6978))
- bug: Exclude `$this` from `TernaryToNullCoalescingFixer` ([#7052](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7052))
- bug: False positive on used imports when docblock includes it with mismatching case ([#6909](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6909))
- bug: Fix chained calls semicolon indent in switch case ([#7045](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7045))
- bug: Fix multiline_whitespace_before_semicolons for echo tags ([#7019](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7019))
- bug: Fix phpDoc align when there is inconsistent spacing after comment star ([#7012](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7012))
- bug: Fix phpDoc parsing without PCRE JIT ([#7031](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7031))
- bug: Fix PhpdocVarWithoutNameFixer with Closure with $this ([#6979](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6979))
- bug: Fix `return_assignment` not formatting when variables are used in `catch` and `finally` ([#6960](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6960))
- bug: Fix `TypeExpression::allowsNull()` with nullable ([#7000](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7000))
- bug: Improve definition of conflicting fixers ([#7066](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7066))
- bug: LambdaNotUsedImportFixer - fix for anonymous class with a string argument ([#6972](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6972))
- bug: ListFilesCommand - fix computing of relative path ([#7028](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7028))
- bug: make `php_unit_namespaced` less greedy ([#6952](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6952))
- bug: PhpdocToCommentFixer - fix for PHPDoc before fn ([#6973](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6973))
- bug: Restructure PER-CS rule sets ([#6707](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6707))
- bug: SelfStaticAccessor - fix static access inside enums ([#7024](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7024))
- bug: SingleSpaceAroundConstructFixer - fix more cases involving `static` ([#6995](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6995))
- bug: `FullyQualifiedStrictTypesFixer` - fix shortening when namespace is not empty and import exists ([#7027](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7027))
- bug: `NoUnneededControlParenthesesFixer` PHP8.0 null-safe operator ([#7056](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7056))
- bug: `PhpdocToCommentFixer` support for enum cases ([#7040](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7040))
- DX: add more tests to CommentsAnalyzer ([#7041](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7041))
- DX: Cleanup duplicate files in finder ([#7042](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7042))
- DX: ControlCaseStructuresAnalyzerTest - cleanup ([#6874](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6874))
- DX: Fix warning when running test on PHP<8 ([#7008](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7008))
- DX: handle `@` in PR title ([#6982](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6982))
- DX: officially deprecate internal Utils anti-pattern class ([#7039](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7039))
- DX: Remove Fabbot.io conditional configuration ([#7038](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7038))
- DX: rename data providers ([#7058](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7058))
- DX: Use `actions/stale` to handle stale issues and pull requests ([#5085](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/5085))
- DX: Use `Utils::naturalLanguageJoin()` in implode calls ([#7032](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7032))
- feature: Add support for custom method placement in `ordered_class_elements` ([#6360](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6360))
- feature: Allow case sensitive order for OrderedClassElementsFixer ([#7020](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7020))
- feature: PHP8.3 - Add CT and block type for `Dynamic class constant fetch` ([#7004](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7004))
- feature: Support attributes in `FinalClassFixer` ([#6893](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6893))
- minor: "Callback" must not be fixed to "callback" by default ([#7011](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7011))
- minor: Add `Util::naturalLanguageJoin()` ([#7022](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7022))
- minor: ClassDefinitionFixer - handle attributes and `readonly` in anonymous class definitions ([#7014](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7014))
- minor: FixerFactory::getFixersConflicts - better type hinting ([#7044](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7044))
- minor: PHP8.3 - Fix TokensAnalyzer::isAnonymousClass support for `readonly` ([#7013](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7013))
- minor: PHP8.3 - Typed class constants - handle nullable by transformer ([#7009](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7009))
- minor: Reduce phpDoc type parser complexity from O(n^2) to O(nlog(n)) ([#6988](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6988))
- minor: ReturnAssignmentFixer - Better handling of anonymous classes ([#7015](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7015))
- minor: Transfer `HelpCommand::toString()` to `Utils` ([#7034](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7034))
- minor: Unify "blank lines before namespace" fixers ([#7053](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7053))
- minor: `SelfStaticAccessorFixer` improvements for enums ([#7026](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7026))
- minor: `SingleSpaceAroundConstructFixer` - support space before `as` ([#7029](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7029))
- minor: `UseArrowFunctionsFixer` - run before `FunctionDeclarationFixer` ([#7065](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7065))
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
3.17.0
->3.18.0
Release Notes
PHP-CS-Fixer/PHP-CS-Fixer
### [`v3.18.0`](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/HEAD/CHANGELOG.md#Changelog-for-v3180) [Compare Source](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.17.0...v3.18.0) - bug: Fix tokenizing of type hints ([#7054](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7054)) - bug: CompactNullableTypehintFixer - fix for whitespace between `?` and `static` ([#6993](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6993)) - bug: consider function modifiers for `statement_indentation` ([#6978](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6978)) - bug: Exclude `$this` from `TernaryToNullCoalescingFixer` ([#7052](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7052)) - bug: False positive on used imports when docblock includes it with mismatching case ([#6909](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6909)) - bug: Fix chained calls semicolon indent in switch case ([#7045](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7045)) - bug: Fix multiline_whitespace_before_semicolons for echo tags ([#7019](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7019)) - bug: Fix phpDoc align when there is inconsistent spacing after comment star ([#7012](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7012)) - bug: Fix phpDoc parsing without PCRE JIT ([#7031](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7031)) - bug: Fix PhpdocVarWithoutNameFixer with Closure with $this ([#6979](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6979)) - bug: Fix `return_assignment` not formatting when variables are used in `catch` and `finally` ([#6960](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6960)) - bug: Fix `TypeExpression::allowsNull()` with nullable ([#7000](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7000)) - bug: Improve definition of conflicting fixers ([#7066](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7066)) - bug: LambdaNotUsedImportFixer - fix for anonymous class with a string argument ([#6972](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6972)) - bug: ListFilesCommand - fix computing of relative path ([#7028](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7028)) - bug: make `php_unit_namespaced` less greedy ([#6952](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6952)) - bug: PhpdocToCommentFixer - fix for PHPDoc before fn ([#6973](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6973)) - bug: Restructure PER-CS rule sets ([#6707](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6707)) - bug: SelfStaticAccessor - fix static access inside enums ([#7024](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7024)) - bug: SingleSpaceAroundConstructFixer - fix more cases involving `static` ([#6995](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6995)) - bug: `FullyQualifiedStrictTypesFixer` - fix shortening when namespace is not empty and import exists ([#7027](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7027)) - bug: `NoUnneededControlParenthesesFixer` PHP8.0 null-safe operator ([#7056](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7056)) - bug: `PhpdocToCommentFixer` support for enum cases ([#7040](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7040)) - DX: add more tests to CommentsAnalyzer ([#7041](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7041)) - DX: Cleanup duplicate files in finder ([#7042](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7042)) - DX: ControlCaseStructuresAnalyzerTest - cleanup ([#6874](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6874)) - DX: Fix warning when running test on PHP<8 ([#7008](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7008)) - DX: handle `@` in PR title ([#6982](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6982)) - DX: officially deprecate internal Utils anti-pattern class ([#7039](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7039)) - DX: Remove Fabbot.io conditional configuration ([#7038](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7038)) - DX: rename data providers ([#7058](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7058)) - DX: Use `actions/stale` to handle stale issues and pull requests ([#5085](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/5085)) - DX: Use `Utils::naturalLanguageJoin()` in implode calls ([#7032](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7032)) - feature: Add support for custom method placement in `ordered_class_elements` ([#6360](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6360)) - feature: Allow case sensitive order for OrderedClassElementsFixer ([#7020](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7020)) - feature: PHP8.3 - Add CT and block type for `Dynamic class constant fetch` ([#7004](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7004)) - feature: Support attributes in `FinalClassFixer` ([#6893](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6893)) - minor: "Callback" must not be fixed to "callback" by default ([#7011](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7011)) - minor: Add `Util::naturalLanguageJoin()` ([#7022](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7022)) - minor: ClassDefinitionFixer - handle attributes and `readonly` in anonymous class definitions ([#7014](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7014)) - minor: FixerFactory::getFixersConflicts - better type hinting ([#7044](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7044)) - minor: PHP8.3 - Fix TokensAnalyzer::isAnonymousClass support for `readonly` ([#7013](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7013)) - minor: PHP8.3 - Typed class constants - handle nullable by transformer ([#7009](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7009)) - minor: Reduce phpDoc type parser complexity from O(n^2) to O(nlog(n)) ([#6988](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6988)) - minor: ReturnAssignmentFixer - Better handling of anonymous classes ([#7015](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7015)) - minor: Transfer `HelpCommand::toString()` to `Utils` ([#7034](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7034)) - minor: Unify "blank lines before namespace" fixers ([#7053](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7053)) - minor: `SelfStaticAccessorFixer` improvements for enums ([#7026](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7026)) - minor: `SingleSpaceAroundConstructFixer` - support space before `as` ([#7029](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7029)) - minor: `UseArrowFunctionsFixer` - run before `FunctionDeclarationFixer` ([#7065](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7065))Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.