We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5e4b2e commit fd9e6bdCopy full SHA for fd9e6bd
src/Barryvdh/Reflection/DocBlock/Type/Collection.php
@@ -151,15 +151,16 @@ protected function expand($type)
151
return '';
152
}
153
154
- if($this->isRelativeType($type) && $this->shouldBeAbsolute($type)){
155
- return self::OPERATOR_NAMESPACE . $type;
156
- }
157
-
158
if ($this->isTypeAnArray($type)) {
159
return $this->expand(substr($type, 0, -2)) . self::OPERATOR_ARRAY;
160
161
162
if ($this->isRelativeType($type) && !$this->isTypeAKeyword($type)) {
+
+ if($this->shouldBeAbsolute($type)){
+ return self::OPERATOR_NAMESPACE . $type;
+ }
163
164
$type_parts = explode(self::OPERATOR_NAMESPACE, $type, 2);
165
166
$namespace_aliases = $this->context->getNamespaceAliases();
0 commit comments