Added 'global' to the list of special namespace names indicating global space and adding namespace resolution to the param tags 'getType()' method

This commit is contained in:
Mike van Riel
2012-06-29 23:04:12 +02:00
parent 467101e53d
commit cb0246462f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -330,7 +330,7 @@ class DocBlock implements \Reflector
}
$namespace = '';
if ($this->namespace != 'default') {
if ($this->namespace != 'default' && $this->namespace != 'global') {
$namespace = rtrim($this->namespace, '\\') . '\\';
}
@@ -79,7 +79,7 @@ class ParamTag extends Tag
*/
public function getType()
{
return $this->type;
return $this->docblock->expandType($this->type);
}
/**