Skip to content

Commit 4863a3c

Browse files
authored
Discard changes to src/Rules/Variables/DefinedVariableRule.php
1 parent b61b526 commit 4863a3c

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/Rules/Variables/DefinedVariableRule.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use PHPStan\Rules\IdentifierRuleError;
1313
use PHPStan\Rules\Rule;
1414
use PHPStan\Rules\RuleErrorBuilder;
15-
use PHPStan\Type\ObjectType;
1615
use function array_merge;
1716
use function in_array;
1817
use function is_string;
@@ -46,15 +45,6 @@ public function processNode(Node $node, Scope $scope): array
4645
$variableNameScopes = [$node->name => $scope];
4746
} else {
4847
$nameType = $scope->getType($node->name);
49-
50-
// testing stuff
51-
$obj = (new ObjectType('SomeClass'))->isSuperTypeOf($nameType);
52-
if ($obj->yes()) {
53-
$x = 1;
54-
} else {
55-
$x = 2;
56-
}
57-
5848
$variableNameScopes = [];
5949
foreach ($nameType->getConstantStrings() as $constantString) {
6050
$name = $constantString->getValue();

0 commit comments

Comments
 (0)