mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-22 02:36:52 +01:00
[DX] add link to all nodes to PhpRectorInterface
This commit is contained in:
parent
eafb517669
commit
47f2264fdd
@ -7,6 +7,7 @@ use PhpParser\Node\Arg;
|
||||
use PhpParser\Node\Expr\ConstFetch;
|
||||
use PhpParser\Node\Expr\FuncCall;
|
||||
use PhpParser\Node\Name;
|
||||
use PhpParser\Node\Scalar\LNumber;
|
||||
use Rector\Rector\AbstractRector;
|
||||
use Rector\RectorDefinition\CodeSample;
|
||||
use Rector\RectorDefinition\RectorDefinition;
|
||||
@ -84,7 +85,7 @@ CODE_SAMPLE
|
||||
}
|
||||
|
||||
if (! isset($funcCall->args[2])) {
|
||||
$funcCall->args[2] = new Arg(new Node\Scalar\LNumber(512));
|
||||
$funcCall->args[2] = new Arg(new LNumber(512));
|
||||
}
|
||||
|
||||
$funcCall->args[3] = new Arg($this->createConstFetch('JSON_THROW_ON_ERROR'));
|
||||
|
@ -8,8 +8,8 @@ use PhpParser\NodeVisitor;
|
||||
interface PhpRectorInterface extends NodeVisitor, RectorInterface
|
||||
{
|
||||
/**
|
||||
* List of nodes this class checks, classes that implement
|
||||
* @see \PhpParser\Node
|
||||
* List of nodes this class checks, classes that implement @see \PhpParser\Node
|
||||
* @see beautifull map of all nodes https://github.com/rectorphp/rector/blob/master/docs/NodesOverview.md
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user