Skip to content

Commit fd9e6bd

Browse files
committed
Move around
1 parent d5e4b2e commit fd9e6bd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Barryvdh/Reflection/DocBlock/Type/Collection.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,16 @@ protected function expand($type)
151151
return '';
152152
}
153153

154-
if($this->isRelativeType($type) && $this->shouldBeAbsolute($type)){
155-
return self::OPERATOR_NAMESPACE . $type;
156-
}
157-
158154
if ($this->isTypeAnArray($type)) {
159155
return $this->expand(substr($type, 0, -2)) . self::OPERATOR_ARRAY;
160156
}
161157

162158
if ($this->isRelativeType($type) && !$this->isTypeAKeyword($type)) {
159+
160+
if($this->shouldBeAbsolute($type)){
161+
return self::OPERATOR_NAMESPACE . $type;
162+
}
163+
163164
$type_parts = explode(self::OPERATOR_NAMESPACE, $type, 2);
164165

165166
$namespace_aliases = $this->context->getNamespaceAliases();

0 commit comments

Comments
 (0)