Skip to content

Commit

Permalink
[TypeDeclaration] Remove ParamTypeFromStrictTypedPropertyRector as se…
Browse files Browse the repository at this point in the history
…ems similar feature with AddParamTypeFromPropertyTypeRector (#5293)
  • Loading branch information
samsonasik committed Nov 28, 2023
1 parent 4a2b4a6 commit 118fbde
Show file tree
Hide file tree
Showing 21 changed files with 2 additions and 605 deletions.
25 changes: 2 additions & 23 deletions build/target-repository/docs/rector_rules_overview.md
@@ -1,4 +1,4 @@
# 353 Rules Overview
# 352 Rules Overview

<br>

Expand Down Expand Up @@ -56,7 +56,7 @@

- [Transform](#transform) (22)

- [TypeDeclaration](#typedeclaration) (41)
- [TypeDeclaration](#typedeclaration) (40)

- [Visibility](#visibility) (3)

Expand Down Expand Up @@ -6602,27 +6602,6 @@ Change param type based on parent param type

<br>

### ParamTypeFromStrictTypedPropertyRector

Add param type from `$param` set to typed property

- class: [`Rector\TypeDeclaration\Rector\Param\ParamTypeFromStrictTypedPropertyRector`](../rules/TypeDeclaration/Rector/Param/ParamTypeFromStrictTypedPropertyRector.php)

```diff
final class SomeClass
{
private int $age;

- public function setAge($age)
+ public function setAge(int $age)
{
$this->age = $age;
}
}
```

<br>

### PropertyTypeFromStrictSetterGetterRector

Add property type based on strict setter and getter method
Expand Down
2 changes: 0 additions & 2 deletions config/set/type-declaration.php
Expand Up @@ -33,7 +33,6 @@
use Rector\TypeDeclaration\Rector\Empty_\EmptyOnNullableObjectToInstanceOfRector;
use Rector\TypeDeclaration\Rector\FunctionLike\AddParamTypeSplFixedArrayRector;
use Rector\TypeDeclaration\Rector\FunctionLike\AddReturnTypeDeclarationFromYieldsRector;
use Rector\TypeDeclaration\Rector\Param\ParamTypeFromStrictTypedPropertyRector;
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector;
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictConstructorRector;
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictSetUpRector;
Expand All @@ -46,7 +45,6 @@
AddReturnTypeDeclarationBasedOnParentClassMethodRector::class,
ReturnTypeFromStrictTypedPropertyRector::class,
TypedPropertyFromStrictConstructorRector::class,
ParamTypeFromStrictTypedPropertyRector::class,
AddVoidReturnTypeWhereNoReturnRector::class,
ReturnTypeFromStrictFluentReturnRector::class,
ReturnTypeFromReturnNewRector::class,
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 118fbde

Please sign in to comment.