Skip to content

IBX-12084: Added Ibexa DXP 6.0 rule set with DeduplicateStamp renamed to Symfony Messenger one - #50

Merged
bnowak merged 4 commits into
6.0from
IBX-12084-added-6.0-rector-rule-set-with-DeduplicateStamp-renamed-to-Symfony-one
Jul 24, 2026
Merged

IBX-12084: Added Ibexa DXP 6.0 rule set with DeduplicateStamp renamed to Symfony Messenger one#50
bnowak merged 4 commits into
6.0from
IBX-12084-added-6.0-rector-rule-set-with-DeduplicateStamp-renamed-to-Symfony-one

Conversation

@bnowak

@bnowak bnowak commented Jul 22, 2026

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-12084

Description:

Added a new IbexaSetList::IBEXA_60 rule set (src/contracts/Sets/ibexa-60.php) for upgrading projects to Ibexa DXP 6.0.

Following the existing pattern between the 4.6 and 5.0 sets, the new set is a standalone copy of the 5.0 set (sets are self-contained and not composed from each other), with a single difference: the DeduplicateStamp rename rule now migrates both Ibexa\Bundle\Messenger\Stamp\DeduplicateStamp and Ibexa\Contracts\Messenger\Stamp\DeduplicateStamp to the native Symfony\Component\Messenger\Stamp\DeduplicateStamp (available since Symfony 7.3), instead of renaming the Bundle class to the Contracts one. The 4.6 and 5.0 sets remain untouched.

For QA:

Covered by automated tests: tests/lib/Sets/Ibexa60 mirrors the existing Ibexa50 set test suite and additionally verifies that both legacy DeduplicateStamp classes (Bundle and Contracts namespaces) are renamed to the Symfony Messenger one.

Manual check (optional): in a project with this package, run Rector with IbexaSetList::IBEXA_60->value against code using either legacy DeduplicateStamp class and confirm it is rewritten to Symfony\Component\Messenger\Stamp\DeduplicateStamp.

Documentation:

A new IbexaSetList::IBEXA_60 Rector set is available for upgrading projects to Ibexa DXP 6.0. When it is applied, usages of Ibexa\Bundle\Messenger\Stamp\DeduplicateStamp and Ibexa\Contracts\Messenger\Stamp\DeduplicateStamp are migrated to Symfony\Component\Messenger\Stamp\DeduplicateStamp.

@alongosz alongosz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, though I don't remember why I kept mirror of 4.6 -> 5.0 sets and hence now 6.0. There's a lot of redundancy. Maybe it was to make it easier for developers, so they don't have to execute rector twice. But now it becomes a maintenance issue for us 😅

@bnowak
bnowak merged commit 01bdc8b into 6.0 Jul 24, 2026
4 checks passed
@bnowak
bnowak deleted the IBX-12084-added-6.0-rector-rule-set-with-DeduplicateStamp-renamed-to-Symfony-one branch July 24, 2026 09:09
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