Skip to content

Commit

Permalink
Merge pull request #1 from worksome/feat-constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Nybroe authored Oct 30, 2021
2 parents 7148775 + 18a93ec commit e12e79b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/WorksomeRectorConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector;
use Rector\DeadCode\Rector\Node\RemoveNonExistingVarAnnotationRector;
use Rector\Php80\Rector\Catch_\RemoveUnusedVariableInCatchRector;
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
use Rector\Php80\Rector\FuncCall\ClassOnObjectRector;
use Rector\Php80\Rector\Identical\StrEndsWithRector;
use Rector\Php80\Rector\Identical\StrStartsWithRector;
Expand Down Expand Up @@ -52,6 +53,9 @@ public static function setup(ContainerConfigurator $containerConfigurator)
$services->set(RemoveUselessReturnTagRector::class);
$services->set(RemoveNonExistingVarAnnotationRector::class);

// PHP 80 set rules
$services->set(ClassPropertyAssignToConstructorPromotionRector::class);

// Naming set rules
// $services->set(\Rector\Naming\Rector\Property\UnderscoreToCamelCasePropertyNameRector::class);
}
Expand Down

0 comments on commit e12e79b

Please sign in to comment.