[DX] add link to all nodes to PhpRectorInterface

This commit is contained in:
Tomas Votruba 2019-06-26 15:30:50 +02:00
parent eafb517669
commit 47f2264fdd
2 changed files with 4 additions and 3 deletions

View File

@ -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'));

View File

@ -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[]
*/