mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 11:44:14 +01:00
init MethodArgumentChangerRector
This commit is contained in:
parent
e14f8278a4
commit
7f027bd571
27
src/Rector/Dynamic/MethodArgumentChangerRector.php
Normal file
27
src/Rector/Dynamic/MethodArgumentChangerRector.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
namespace Rector\Rector\Dynamic;
|
||||
|
||||
use PhpParser\Node;
|
||||
use Rector\Rector\AbstractRector;
|
||||
|
||||
/**
|
||||
* @todo collect cases and prepare tests for them
|
||||
*
|
||||
* Possible options so far:
|
||||
* - new argument
|
||||
* - argument removed
|
||||
* - new default value for argument
|
||||
*/
|
||||
final class MethodArgumentChangerRector extends AbstractRector
|
||||
{
|
||||
public function isCandidate(Node $node): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function refactor(Node $node): ?Node
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user