Skip to content

Commit

Permalink
[automated] Re-Generate Nodes/Rectors Documentation (#3059)
Browse files Browse the repository at this point in the history
Co-authored-by: TomasVotruba <TomasVotruba@users.noreply.github.com>
  • Loading branch information
TomasVotruba and TomasVotruba committed Nov 13, 2022
1 parent 2be958b commit 419c4f8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build/target-repository/docs/rector_rules_overview.md
Expand Up @@ -211,7 +211,7 @@ return static function (RectorConfig $rectorConfig): void {

### SwapFuncCallArgumentsRector

Swap arguments in function calls
Reorder arguments in function calls

:wrench: **configure it!**

Expand All @@ -225,7 +225,7 @@ use Rector\Config\RectorConfig;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->ruleWithConfiguration(
SwapFuncCallArgumentsRector::class,
[new SwapFuncCallArguments('some_function', [1, 0])]
[new SwapFuncCallArguments('some_function', [2, 1, 0])]
);
};
```
Expand All @@ -235,10 +235,10 @@ return static function (RectorConfig $rectorConfig): void {
```diff
final class SomeClass
{
public function run($one, $two)
public function run()
{
- return some_function($one, $two);
+ return some_function($two, $one);
- return some_function('one', 'two', 'three');
+ return some_function('three', 'two', 'one');
}
}
```
Expand Down

0 comments on commit 419c4f8

Please sign in to comment.