Skip to content

Commit ff56253

Browse files
committed
fixup! remove rest of instanceof checks
1 parent e6a5b1a commit ff56253

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Contract/PhpParser/Node/StmtsAwareInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use PhpParser\Node\Stmt;
99

1010
/**
11+
* @api
1112
* @deprecated This interface is deprecated since Rector 2.2.9 as changing node classes. Use @see NodeGroup::STMTS_AWARE instead.
1213
*
1314
* @property Stmt[]|null $stmts

src/PhpParser/Enum/NodeGroup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ final class NodeGroup
7979
public static function isStmtAwareNode(Node $node): bool
8080
{
8181
foreach (self::STMTS_AWARE as $stmtAwareClass) {
82-
if (is_a($node, $stmtAwareClass, true)) {
82+
if ($node instanceof $stmtAwareClass) {
8383
return true;
8484
}
8585
}

0 commit comments

Comments
 (0)