mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-07 09:02:33 +02:00
Updated Rector to commit fcd141bb95c7d81fb4409421a53e762e52a1ff39
fcd141bb95
[NodeTypeResolver] Clean up wrap in parentheses check ReprintNodeVisitor (#6692)
This commit is contained in:
parent
699d1b7dd4
commit
737f3f7d28
src
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '00ae805d747e43b7d279a17d9e14ec4a374894a8';
|
||||
public const PACKAGE_VERSION = 'fcd141bb95c7d81fb4409421a53e762e52a1ff39';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2025-01-23 01:55:44';
|
||||
public const RELEASE_DATE = '2025-01-23 02:58:16';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
@ -6,7 +6,6 @@ namespace Rector\NodeTypeResolver\PHPStan\Scope\NodeVisitor;
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Expr\BinaryOp;
|
||||
use PhpParser\Node\Expr\BinaryOp\Coalesce;
|
||||
use PhpParser\Node\Expr\BooleanNot;
|
||||
use PhpParser\NodeVisitorAbstract;
|
||||
use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
use Rector\NodeTypeResolver\PHPStan\Scope\Contract\NodeVisitor\ScopeResolverNodeVisitorInterface;
|
||||
@ -26,9 +25,6 @@ final class ReprintNodeVisitor extends NodeVisitorAbstract implements ScopeResol
|
||||
}
|
||||
return $node;
|
||||
}
|
||||
if ($node instanceof BooleanNot && $node->expr instanceof BinaryOp && $node->expr->getAttribute(AttributeKey::ORIGINAL_NODE) instanceof Node) {
|
||||
$node->expr->setAttribute(AttributeKey::WRAPPED_IN_PARENTHESES, \true);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user