Skip to content

How to rewrite the config #8654

Answered by samsonasik
mimmi20 asked this question in Q&A
May 24, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You can use withSets():

return RectorConfig::configure()
    ->withPaths([
        ...
    ])
    ->withPhpVersion(PhpVersion::PHP_81)
    ->withPreparedSets(deadCode: true, earlyReturn: true)
    ->withPhpSets(php81: true)
    ->withSets(
        [
            PHPUnitSetList::PHPUNIT_100
        ]
     )
    ->withSkip([...])
    ;

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mimmi20
Comment options

Answer selected by samsonasik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants