mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-28 21:53:31 +00:00
[Core] Remove Current Statement check on RectifiedAnalyzer, use Original Node instead (#2148)
* [Core] Remove Current Statement check on RectifiedAnalyzer, use Original Node instead * [ci-review] Rector Rectify * clean up * clean up Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
parent
eaaecc39d7
commit
80a04aa51f
|
@ -54,8 +54,8 @@ final class RectifiedAnalyzer
|
|||
return true;
|
||||
}
|
||||
|
||||
$stmt = $node->getAttribute(AttributeKey::CURRENT_STATEMENT);
|
||||
if ($stmt instanceof Stmt) {
|
||||
$originalNode = $node->getAttribute(AttributeKey::ORIGINAL_NODE);
|
||||
if ($originalNode instanceof Node) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user