Skip to content

Commit

Permalink
[Php81] Remove IntersectionTypesRector as rely on docblock (#4784)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Aug 14, 2023
1 parent b0105f2 commit 6b7aac8
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 280 deletions.
25 changes: 2 additions & 23 deletions build/target-repository/docs/rector_rules_overview.md
@@ -1,4 +1,4 @@
# 355 Rules Overview
# 354 Rules Overview

<br>

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

- [Php80](#php80) (16)

- [Php81](#php81) (10)
- [Php81](#php81) (9)

- [Php82](#php82) (4)

Expand Down Expand Up @@ -5070,27 +5070,6 @@ Upgrade array callable to first class callable

<br>

### IntersectionTypesRector

Change docs to intersection types, where possible (properties are covered by TypedPropertyRector (@todo))

- class: [`Rector\Php81\Rector\FunctionLike\IntersectionTypesRector`](../rules/Php81/Rector/FunctionLike/IntersectionTypesRector.php)

```diff
final class SomeClass
{
- /**
- * @param Foo&Bar $types
- */
- public function process($types)
+ public function process(Foo&Bar $types)
{
}
}
```

<br>

### MyCLabsClassToEnumRector

Refactor MyCLabs enum class to native Enum
Expand Down
2 changes: 0 additions & 2 deletions config/set/php81.php
Expand Up @@ -9,7 +9,6 @@
use Rector\Php81\Rector\ClassConst\FinalizePublicClassConstantRector;
use Rector\Php81\Rector\ClassMethod\NewInInitializerRector;
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
use Rector\Php81\Rector\FunctionLike\IntersectionTypesRector;
use Rector\Php81\Rector\MethodCall\MyCLabsMethodCallToEnumConstRector;
use Rector\Php81\Rector\MethodCall\SpatieEnumMethodCallToEnumConstRector;
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
Expand All @@ -25,7 +24,6 @@
SpatieEnumClassToEnumRector::class,
SpatieEnumMethodCallToEnumConstRector::class,
NewInInitializerRector::class,
IntersectionTypesRector::class,
NullToStrictStringFuncCallArgRector::class,
FirstClassCallableRector::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.

147 changes: 0 additions & 147 deletions rules/Php81/Rector/FunctionLike/IntersectionTypesRector.php

This file was deleted.

0 comments on commit 6b7aac8

Please sign in to comment.