fix variable naming
parent
23438b8281
commit
393eb6ff91
|
@ -745,10 +745,8 @@ class DefinitionResolver
|
||||||
if (is_string($node->type)) {
|
if (is_string($node->type)) {
|
||||||
// Resolve a string like "bool" to a type object
|
// Resolve a string like "bool" to a type object
|
||||||
$type = $this->typeResolver->resolve($node->type);
|
$type = $this->typeResolver->resolve($node->type);
|
||||||
} else if ($node->returnType instanceof Node\Name) {
|
} else if ($node->type instanceof Node\Name) {
|
||||||
$type = (string)$node->returnType;
|
if (strtolower($node->type) === 'self') {
|
||||||
|
|
||||||
if (strtolower($type) === 'self') {
|
|
||||||
// handle self reference
|
// handle self reference
|
||||||
$class = getClosestNode($node, Node\Stmt\Class_::class);
|
$class = getClosestNode($node, Node\Stmt\Class_::class);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue