mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 10:07:12 +00:00
Merge remote-tracking branch 'warxcell/empty_var_name'
This commit is contained in:
@@ -111,8 +111,8 @@ class Var_ extends BaseTag implements Factory\StaticMethod
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return ($this->type ? $this->type . ' ' : '')
|
||||
. '$' . $this->variableName
|
||||
. ($this->description ? ' ' . $this->description : '');
|
||||
return ($this->type ? $this->type.' ' : '')
|
||||
.(empty($this->variableName) ? null : ('$'.$this->variableName))
|
||||
.($this->description ? ' '.$this->description : '');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user