Skip to content

Commit 2dff79e

Browse files
committed
test change
1 parent 3025ed6 commit 2dff79e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Rules/Variables/DefinedVariableRule.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ public function processNode(Node $node, Scope $scope): array
4545
$variableNameScopes = [$node->name => $scope];
4646
} else {
4747
$nameType = $scope->getType($node->name);
48+
49+
// testing stuff
50+
$obj = (new ObjectType('SomeClass'))->isSuperTypeOf($nameType);
51+
if ($obj->yes()) {
52+
$x = 1;
53+
} else {
54+
$x = 2;
55+
}
56+
4857
$variableNameScopes = [];
4958
foreach ($nameType->getConstantStrings() as $constantString) {
5059
$name = $constantString->getValue();

0 commit comments

Comments
 (0)