Last active
June 30, 2024 15:32
-
-
Save zb010/f6189ae188f18119c49715cf9cbf02da to your computer and use it in GitHub Desktop.
rector.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| use Rector\Config\RectorConfig; | |
| use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector; | |
| return RectorConfig::configure() | |
| ->withPaths([ | |
| __DIR__ . '/config', | |
| __DIR__ . '/public', | |
| __DIR__ . '/src', | |
| ]) | |
| ->withRules([ | |
| AddVoidReturnTypeWhereNoReturnRector::class, | |
| ]) | |
| ->withPreparedSets( | |
| deadCode: true, | |
| codeQuality: true, | |
| ) | |
| ->withPhpSets() | |
| ->withAttributesSets( | |
| symfony: true, | |
| doctrine: true, | |
| ) | |
| ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment