mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
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:
@@ -330,7 +330,7 @@ class DocBlock implements \Reflector
|
|||||||
}
|
}
|
||||||
|
|
||||||
$namespace = '';
|
$namespace = '';
|
||||||
if ($this->namespace != 'default') {
|
if ($this->namespace != 'default' && $this->namespace != 'global') {
|
||||||
$namespace = rtrim($this->namespace, '\\') . '\\';
|
$namespace = rtrim($this->namespace, '\\') . '\\';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ class ParamTag extends Tag
|
|||||||
*/
|
*/
|
||||||
public function getType()
|
public function getType()
|
||||||
{
|
{
|
||||||
return $this->type;
|
return $this->docblock->expandType($this->type);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user