Skip to content

Commit

Permalink
fix: rector config using outdated rules
Browse files Browse the repository at this point in the history
  • Loading branch information
stickeepaul committed Jan 3, 2024
1 parent aea0b08 commit be31b4e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,11 @@

$rectorConfig->skip([
// \Rector\TypeDeclaration\Rector\FunctionLike\ReturnTypeDeclarationRector::class, // Adds return types, which may conflict with Laravel built-ins.
\Rector\TypeDeclaration\Rector\Closure\AddClosureReturnTypeRector::class, // Adds return type to closures, which may conflict with Laravel built-ins.
\Rector\EarlyReturn\Rector\If_\ChangeOrIfReturnToEarlyReturnRector::class, // Forces an early return, which is sometimes less easy to read.
\Rector\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector::class, // Removes @param from docblocks.
\Rector\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector::class, // Removes return from docblocks.
\Rector\CodingStyle\Rector\PostInc\PostIncDecToPreIncDecRector::class, // Changes $i++ to ++$i.
\Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector::class, // Changes "th{$is}" to sprintf('th%s', 'is').
\Rector\Php80\Rector\FunctionLike\MixedTypeRector::class, // Removes docblocks.
\Rector\Php80\Rector\FunctionLike\UnionTypesRector::class, // Removes docblocks.
]);

};

0 comments on commit be31b4e

Please sign in to comment.