Skip to content

Add pest option to withComposerBased() - #9119

Merged
TomasVotruba merged 1 commit into
mainfrom
composer-based-pest
Dec 3, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
composer-based-pest

Conversation

@TomasVotruba

@TomasVotruba TomasVotruba commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Adds pest: true to withComposerBased(), loading the composer-based set of rectorphp/rector-pest.

return RectorConfig::configure()
    ->withComposerBased(pest: true);

Handled like rector-laravel and drupal-rector - guarded with class_exists(), as the package is not required here. Auto-detection without arguments triggers on installed pestphp/pest.

Rules in the set are each bound to the installed pestphp/pest version, covering upgrade from Pest 2 to 5, see rectorphp/rector-pest#1

@TomasVotruba
TomasVotruba merged commit 21b5613 into main Dec 3, 2026
49 of 50 checks passed
@TomasVotruba
TomasVotruba deleted the composer-based-pest branch December 3, 2026 18:15
@TomasVotruba TomasVotruba changed the title Add pest option to withComposerBased() Add rector-pest package and pest option to withComposerBased() Dec 3, 2026
@TomasVotruba TomasVotruba changed the title Add rector-pest package and pest option to withComposerBased() Add pest option to withComposerBased() Dec 3, 2026
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