Skip to content

Commit

Permalink
refactor: add typed on private property based on assigns (#1200)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik authored Jan 10, 2025
1 parent e8ab0f9 commit 9f2c4f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitSelfCallRector;
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector;
use Rector\TypeDeclaration\Rector\Closure\ClosureReturnTypeRector;
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector;
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictSetUpRector;

return RectorConfig::configure()
Expand Down Expand Up @@ -130,4 +131,5 @@
ClosureReturnTypeRector::class,
TypedPropertyFromStrictSetUpRector::class,
PreferPHPUnitSelfCallRector::class,
TypedPropertyFromAssignsRector::class,
]);
3 changes: 1 addition & 2 deletions src/Prototype/tests/Traverse/ConstructorParamsVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

class ConstructorParamsVisitor extends NodeVisitorAbstract
{
/** @var array */
private $params = [];
private array $params = [];

/**
* {@inheritDoc}
Expand Down

0 comments on commit 9f2c4f9

Please sign in to comment.