Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Commit 94df6a6

Browse files
committed
Fixed tests
1 parent 677cf95 commit 94df6a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TypeGuessing/SymbolTable/Resolver/ReattachStateToProperty.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function resolveVariableType(Node $node)
3838
if ($node instanceof Node\Expr\PropertyFetch) {
3939
// $this->someProperty
4040
if ($node->var instanceof Node\Expr\Variable && $node->var->name === 'this') {
41-
$node->setAttribute('guessedType', $this->table->lookUpClassProperty($node->name)->type());
41+
$node->setAttribute('guessedType', $this->table->lookUpClassProperty($node->name->toString())->type());
4242
}
4343

4444
// $x->someProperty

0 commit comments

Comments
 (0)