mirror of
https://github.com/rectorphp/rector.git
synced 2024-09-03 22:22:14 +00:00
Revert change
Sounds like isn't necessary
This commit is contained in:
parent
32617ecbac
commit
7e642e6024
@ -19,6 +19,7 @@ parameters:
|
||||
# known values
|
||||
- '#Argument of an invalid type array<PhpParser\\Node>\|null supplied for foreach, only iterables are supported#' # 1
|
||||
- '#Access to an undefined property PHPStan\\PhpDocParser\\Ast\\Node::\$name#' # 2
|
||||
- '#Calling method getName\(\) on possibly null value of type Rector\\Builder\\Class_\\VariableInfo\|null#' # 1
|
||||
|
||||
- '#Method Rector\\Node\\NodeFactory::createNullConstant\(\) should return PhpParser\\Node\\Expr\\ConstFetch but returns PhpParser\\Node\\Expr#' # 1
|
||||
- '#Method Rector\\Node\\NodeFactory::createNamespace\(\) should return PhpParser\\Node\\Stmt\\Namespace_ but returns PhpParser\\Node#' # 1
|
||||
|
@ -22,7 +22,7 @@ final class ReplaceVariableByPropertyFetchRector extends AbstractRector
|
||||
private $variablesToPropertyFetchCollection;
|
||||
|
||||
/**
|
||||
* @var VariableInfo
|
||||
* @var VariableInfo|null
|
||||
*/
|
||||
private $activeVariableInfo;
|
||||
|
||||
@ -91,6 +91,8 @@ CODE_SAMPLE
|
||||
|
||||
public function isCandidate(Node $node): bool
|
||||
{
|
||||
$this->activeVariableInfo = null;
|
||||
|
||||
if (! $node instanceof Variable) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user