Add custom rector rule for yoda conditions

This commit is contained in:
David Stone
2025-02-09 00:21:40 -07:00
parent be0ab98895
commit 07a69d33e5
7 changed files with 167 additions and 29 deletions

View File

@ -19,8 +19,10 @@ return RectorConfig::configure()
->withSkipPath(__DIR__ . '/vendor',)
->withImportNames(false)
->withPhpSets()
->withCodeQualityLevel(15)
->withCodingStyleLevel(5)
->withRules(
[
AddVoidReturnTypeWhereNoReturnRector::class,
\Utils\Rector\Rector\YodaConditionsRector::class,
]
);