Skip to content

[CodeQuality] Deprecate BehatPHPUnitAssertToWebmozartRector as too narrow#686

Merged
TomasVotruba merged 1 commit into
mainfrom
deprecate-behat-webmozart-assert
Jun 28, 2026
Merged

[CodeQuality] Deprecate BehatPHPUnitAssertToWebmozartRector as too narrow#686
TomasVotruba merged 1 commit into
mainfrom
deprecate-behat-webmozart-assert

Conversation

@TomasVotruba

@TomasVotruba TomasVotruba commented Jun 28, 2026

Copy link
Copy Markdown
Member

Deprecate BehatPHPUnitAssertToWebmozartRector

This rule lives outside any set, so it must be registered explicitly. Its scope is very narrow - it only fires inside Behat Context files - which makes it a poor fit for a shared, maintained rule. This kind of project-specific assert swap is better implemented as a custom rule.

…rrow

Only targets Behat context files - better implemented as a custom rule.
Marked with DeprecatedInterface, gut logic, drop now-orphaned WebmozartClassName enum and tests.
@TomasVotruba TomasVotruba merged commit 191ed98 into main Jun 28, 2026
8 checks passed
@TomasVotruba TomasVotruba deleted the deprecate-behat-webmozart-assert branch June 28, 2026 13:10
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