Skip to content

[deprecations] Remove long-deprecated rules (5+ mnths)#8094

Merged
TomasVotruba merged 1 commit into
mainfrom
remove-old-deprecated-rules
Jun 27, 2026
Merged

[deprecations] Remove long-deprecated rules (5+ mnths)#8094
TomasVotruba merged 1 commit into
mainfrom
remove-old-deprecated-rules

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Removes 7 rules that have been deprecated for 5+ months (deprecated between 2025-10 and 2025-12), plus the now-unused ClassMethodReference value object.

Deprecated Rule Note
2025-10-25 ReturnTypeWillChangeRector not in any set; use type declaration set
2025-10-25 AddLiteralSeparatorToNumberRector opinionated, cannot be automated
2025-12-07 IncreaseDeclareStrictTypesRector non-deterministic; use DeclareStrictTypesRector
2025-12-08 FunctionLikeToFirstClassCallableRector split into Closure/ArrowFunction variants
2025-12-09 FirstClassCallableRector renamed to ArrayToFirstClassCallableRector
2025-12-09 SymplifyQuoteEscapeRector renamed to SimplifyQuoteEscapeRector
2025-12-10 SortNamedParamRector renamed to SortCallLikeNamedArgsRector

Obsolete phpstan.neon ignore entries for these rules dropped too.

Recently deprecated rules (April/June 2026) are intentionally kept.

composer phpstan and composer check-cs both green.

Remove 7 rules deprecated between 2025-10 and 2025-12, plus the now-unused
ClassMethodReference value object:

- ReturnTypeWillChangeRector
- AddLiteralSeparatorToNumberRector
- IncreaseDeclareStrictTypesRector
- FunctionLikeToFirstClassCallableRector
- FirstClassCallableRector
- SymplifyQuoteEscapeRector
- SortNamedParamRector

Also drop their now-obsolete phpstan.neon ignore entries.
@TomasVotruba TomasVotruba changed the title Remove long-deprecated rules (5+ months deprecated) [deprecations] Remove long-deprecated rules (5+ mnths) Jun 27, 2026
@TomasVotruba TomasVotruba merged commit 2f9ec7b into main Jun 27, 2026
65 checks passed
@TomasVotruba TomasVotruba deleted the remove-old-deprecated-rules branch June 27, 2026 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant