Ran fix-cs

This commit is contained in:
Jeroen Smit 2019-11-01 20:29:27 +01:00
parent 4b38e85de3
commit ea5fac3b87
4 changed files with 4 additions and 4 deletions

View File

@ -158,10 +158,10 @@ PHP
return $this->betterNodeFinder->findFirstParentInstanceOf($node, self::CONTROL_STRUCTURE_NODES);
}
private function isSelfReferencing(Assign $node) : bool
private function isSelfReferencing(Assign $assign): bool
{
return (bool)$this->betterNodeFinder->findFirst($node->expr, function ($subNode) use ($node){
return $this->areNodesEqual($node->var, $subNode);
return (bool) $this->betterNodeFinder->findFirst($assign->expr, function ($subNode) use ($assign) {
return $this->areNodesEqual($assign->var, $subNode);
});
}
}

View File

@ -4,13 +4,13 @@ declare(strict_types=1);
namespace Rector\NodeTypeResolver\NodeVisitor;
use PhpParser\Node\Stmt\Function_;
use Nette\Utils\Strings;
use PhpParser\Node;
use PhpParser\Node\Name\FullyQualified;
use PhpParser\Node\Stmt\Class_;
use PhpParser\Node\Stmt\ClassLike;
use PhpParser\Node\Stmt\ClassMethod;
use PhpParser\Node\Stmt\Function_;
use PhpParser\NodeVisitorAbstract;
use Rector\NodeTypeResolver\Node\AttributeKey;