Skip to content

Commit

Permalink
[Doc] Document deprecated USE_NODES and CURRENT_STATEMENT constant to…
Browse files Browse the repository at this point in the history
… use existing method call when needed (#2181)

* [Doc] Document deprecated USE_NODES and CURRENT_STATEMENT constant to use existing method call when needed

* reduce line
  • Loading branch information
samsonasik authored Apr 27, 2022
1 parent 4fea4e2 commit 80df628
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/NodeTypeResolver/Node/AttributeKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ final class AttributeKey
public const SCOPE = 'scope';

/**
* @deprecated
* @deprecated Use @see \Rector\Naming\Naming\UseImportsResolver::resolveForNode() instead
* @var string
*/
public const USE_NODES = 'useNodes';
Expand Down Expand Up @@ -88,6 +88,7 @@ final class AttributeKey
/**
* @deprecated Instead of tree climbing without context, hook into parent node that contains the stmts directly.
* E.g. FunctionLike, If_, While_ etc.
* Use @see \Rector\Core\PhpParser\Node\BetterNodeFinder::resolveCurrentStatement() instead if actually needed
* @var string
*/
public const CURRENT_STATEMENT = 'currentExpression';
Expand Down

0 comments on commit 80df628

Please sign in to comment.