Skip to content

IBX-12374: Enabled the Behat annotations-to-attributes set in the shared Rector configuration factory - #53

Merged
ViniTou merged 1 commit into
6.0from
IBX-12374-behat-attributes-set
Sep 8, 2026
Merged

IBX-12374: Enabled the Behat annotations-to-attributes set in the shared Rector configuration factory#53
ViniTou merged 1 commit into
6.0from
IBX-12374-behat-attributes-set

Conversation

@ViniTou

@ViniTou ViniTou commented Sep 8, 2026

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-12374

Description:

Phase-5 cleanup of the Behat 4 upgrade (ibexa/behat#200). Behat 4 removed annotation support, so every repository must use PHP attributes for step definitions and hooks. The per-repository rector.php files got a ->withAttributesSets(behat: true) guard during the migration; this adds the same guard to the shared IbexaRectorConfigFactory so factory-based configurations are covered too, and new repositories get it for free.

Registers SetList::BEHAT_ANNOTATIONS_TO_ATTRIBUTES — a no-op on code that already uses attributes, converts any reintroduced annotation.

For QA:

IbexaRectorConfigFactoryTest updated and green; phpstan and code style clean.

Documentation:

N/A

@ViniTou
ViniTou merged commit fc9f365 into 6.0 Sep 8, 2026
4 checks passed
@ViniTou
ViniTou deleted the IBX-12374-behat-attributes-set branch September 8, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants