Skip to content

Require rector-pest like other rector packages - #9120

Merged
TomasVotruba merged 1 commit into
mainfrom
require-rector-pest
Dec 3, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
require-rector-pest

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Adds rectorphp/rector-pest as a sibling package, the same way as rector-phpunit, rector-doctrine and rector-symfony. Follow up to #9119.

  • rector/rector-pest: dev-main required in composer.json, * conflict in build/target-repository/composer.json
  • added to packages tests workflow, release script, README CI status, rule finder scripts and CLAUDE.md
  • withComposerBased(pest: true) loads PestSetList::COMPOSER_BASED directly, no class_exists() guard needed anymore
  • generate-composer-based-trigger-packages.php reads the Pest set like the PHPUnit one, and now keeps the order of withComposerBased() arguments, as pest is added last to stay BC

The set covers upgrade from Pest 2 to 5, each rule is bound to the installed pestphp/pest version.

Requires rectorphp/rector-pest#1 to be merged first, so dev-main has a composer.json.

@TomasVotruba
TomasVotruba merged commit 9ca6445 into main Dec 3, 2026
51 of 52 checks passed
@TomasVotruba
TomasVotruba deleted the require-rector-pest branch December 3, 2026 18:21
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