Skip to content

Instantly share code, notes, and snippets.

@zb010
Last active June 30, 2024 15:32
Show Gist options
  • Select an option

  • Save zb010/f6189ae188f18119c49715cf9cbf02da to your computer and use it in GitHub Desktop.

Select an option

Save zb010/f6189ae188f18119c49715cf9cbf02da to your computer and use it in GitHub Desktop.
rector.php
<?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