Skip to content

Commit

Permalink
Remove RemoveMethodCallParamRector, as unused (#4119)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jun 8, 2023
1 parent 8db9a6f commit 923b590
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 319 deletions.
43 changes: 2 additions & 41 deletions build/target-repository/docs/rector_rules_overview.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# 377 Rules Overview
# 376 Rules Overview

<br>

## Categories

- [Arguments](#arguments) (6)
- [Arguments](#arguments) (5)

- [CodeQuality](#codequality) (71)

Expand Down Expand Up @@ -142,45 +142,6 @@ return static function (RectorConfig $rectorConfig): void {

<br>

### RemoveMethodCallParamRector

Remove parameter of method call

:wrench: **configure it!**

- class: [`Rector\Arguments\Rector\MethodCall\RemoveMethodCallParamRector`](../rules/Arguments/Rector/MethodCall/RemoveMethodCallParamRector.php)

```php
<?php

declare(strict_types=1);

use Rector\Arguments\Rector\MethodCall\RemoveMethodCallParamRector;
use Rector\Arguments\ValueObject\RemoveMethodCallParam;
use Rector\Config\RectorConfig;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->ruleWithConfiguration(RemoveMethodCallParamRector::class, [
new RemoveMethodCallParam('Caller', 'process', 1),
]);
};
```


```diff
final class SomeClass
{
public function run(Caller $caller)
{
- $caller->process(1, 2);
+ $caller->process(1);
}
}
```

<br>

### ReplaceArgumentDefaultValueRector

Replaces defined map of arguments in defined methods and their calls.
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.

118 changes: 0 additions & 118 deletions rules/Arguments/Rector/MethodCall/RemoveMethodCallParamRector.php

This file was deleted.

32 changes: 0 additions & 32 deletions rules/Arguments/ValueObject/RemoveMethodCallParam.php

This file was deleted.

0 comments on commit 923b590

Please sign in to comment.