[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:
Abdul Malik Ikhsan 2022-04-24 23:27:53 +07:00 committed by GitHub
parent eaaecc39d7
commit 80a04aa51f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}