Skip to content

Deprecate ReplaceArgumentDefaultValue value object - #8690

Merged
TomasVotruba merged 1 commit into
mainfrom
tv-deprecate-replace-argument-default-value-vo
Oct 17, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
tv-deprecate-replace-argument-default-value-vo

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Follow-up to #8686.

The @api used in rector-symfony note on ReplaceArgumentDefaultValue was inaccurate - the value object is not referenced in rector-symfony (nor in any sibling package).

Since the ReplaceArgumentDefaultValueRector rule that consumes it is already deprecated, this marks the value object @deprecated too.

The ANY_VALUE_BEFORE sentinel was the only member still used by live code (ArgumentDefaultValueReplacer, which also serves the non-deprecated FunctionArgumentDefaultValueReplacerRector). It is moved to the shared ReplaceArgumentDefaultValueInterface so live code no longer touches the deprecated class.

@TomasVotruba
TomasVotruba enabled auto-merge (squash) October 17, 2026 18:53
@TomasVotruba
TomasVotruba disabled auto-merge October 17, 2026 18:53
@TomasVotruba
TomasVotruba merged commit 0107cc8 into main Oct 17, 2026
48 of 49 checks passed
@TomasVotruba
TomasVotruba deleted the tv-deprecate-replace-argument-default-value-vo branch October 17, 2026 18:53
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