Permalink
Browse files

Merge branch '583' into develop

  • Loading branch information...
2 parents 0fa94e2 + 6396e1c commit 76b325492d10b37f941051f7eeae9e70bca74e02 @mvriel mvriel committed Sep 21, 2012
@@ -279,7 +279,7 @@ public function enterNode(\PHPParser_Node $node)
foreach ($node->consts as $constant) {
$reflector = new ConstantReflector($node, $constant);
$reflector->setNamespaceAliases($this->namespace_aliases);
- $this->constants[$reflector->getName()] = $reflector;
+ $this->constants[] = $reflector;
}
break;
case 'PHPParser_Node_Expr_FuncCall':
@@ -306,7 +306,7 @@ public function enterNode(\PHPParser_Node $node)
// split over 2 objects
$reflector = new ConstantReflector($constant, $constant);
$reflector->setNamespaceAliases($this->namespace_aliases);
- $this->constants[$reflector->getName()] = $reflector;
+ $this->constants[] = $reflector;
}
break;
case 'PHPParser_Node_Expr_Include':
@@ -32,14 +32,14 @@ public function parseSubElements()
);
$reflector->setNamespace($this->getNamespace());
$reflector->setNamespaceAliases($this->namespace_aliases);
- $this->properties[$reflector->getName()] = $reflector;
+ $this->properties[] = $reflector;
}
break;
case 'PHPParser_Node_Stmt_ClassMethod':
$reflector = new ClassReflector\MethodReflector($stmt);
$reflector->setNamespace($this->getNamespace());
$reflector->setNamespaceAliases($this->namespace_aliases);
- $this->methods[$reflector->getName()] = $reflector;
+ $this->methods[] = $reflector;
break;
case 'PHPParser_Node_Stmt_ClassConst':
foreach ($stmt->consts as $constant) {
@@ -48,7 +48,7 @@ public function parseSubElements()
);
$reflector->setNamespace($this->getNamespace());
$reflector->setNamespaceAliases($this->namespace_aliases);
- $this->constants[$reflector->getName()] = $reflector;
+ $this->constants[] = $reflector;
}
break;
}

0 comments on commit 76b3254

Please sign in to comment.