1
0
Fork 0

fix variable naming

pull/354/head
jens1o 2017-04-17 21:03:40 +02:00
parent 23438b8281
commit 393eb6ff91
1 changed files with 2 additions and 4 deletions

View File

@ -745,10 +745,8 @@ class DefinitionResolver
if (is_string($node->type)) {
// Resolve a string like "bool" to a type object
$type = $this->typeResolver->resolve($node->type);
} else if ($node->returnType instanceof Node\Name) {
$type = (string)$node->returnType;
if (strtolower($type) === 'self') {
} else if ($node->type instanceof Node\Name) {
if (strtolower($node->type) === 'self') {
// handle self reference
$class = getClosestNode($node, Node\Stmt\Class_::class);