Skip to content

Commit e0f2c7d

Browse files
committed
remove unused flag IS_UNREACHABLE attribute
1 parent 12369f7 commit e0f2c7d

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

.phpstorm.meta.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
\Rector\NodeTypeResolver\Node\AttributeKey::SCOPE,
5050
\Rector\NodeTypeResolver\Node\AttributeKey::REPRINT_RAW_VALUE,
5151
\Rector\NodeTypeResolver\Node\AttributeKey::ORIGINAL_NODE,
52-
\Rector\NodeTypeResolver\Node\AttributeKey::IS_UNREACHABLE,
5352
\Rector\NodeTypeResolver\Node\AttributeKey::PHP_DOC_INFO,
5453
\Rector\NodeTypeResolver\Node\AttributeKey::KIND,
5554
\Rector\NodeTypeResolver\Node\AttributeKey::IS_REGULAR_PATTERN,
@@ -64,7 +63,6 @@
6463
\Rector\NodeTypeResolver\Node\AttributeKey::SCOPE,
6564
\Rector\NodeTypeResolver\Node\AttributeKey::REPRINT_RAW_VALUE,
6665
\Rector\NodeTypeResolver\Node\AttributeKey::ORIGINAL_NODE,
67-
\Rector\NodeTypeResolver\Node\AttributeKey::IS_UNREACHABLE,
6866
\Rector\NodeTypeResolver\Node\AttributeKey::PHP_DOC_INFO,
6967
\Rector\NodeTypeResolver\Node\AttributeKey::KIND,
7068
\Rector\NodeTypeResolver\Node\AttributeKey::IS_REGULAR_PATTERN,

src/NodeTypeResolver/Node/AttributeKey.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,6 @@ final class AttributeKey
7171
*/
7272
public const KIND = 'kind';
7373

74-
/**
75-
* @var string
76-
*/
77-
public const IS_UNREACHABLE = 'isUnreachable';
78-
7974
/**
8075
* @var string
8176
*/

src/NodeTypeResolver/PHPStan/Scope/PHPStanNodeScopeResolver.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -582,11 +582,6 @@ private function processUnreachableStatementNode(
582582
callable $nodeCallback
583583
): void {
584584
$originalStmt = $unreachableStatementNode->getOriginalStatement();
585-
$originalStmt->setAttribute(AttributeKey::IS_UNREACHABLE, true);
586-
587-
foreach ($unreachableStatementNode->getNextStatements() as $stmt) {
588-
$stmt->setAttribute(AttributeKey::IS_UNREACHABLE, true);
589-
}
590585

591586
$this->nodeScopeResolverProcessNodes(
592587
array_merge([$originalStmt], $unreachableStatementNode->getNextStatements()),

0 commit comments

Comments
 (0)