Skip to content

Commit d5e4b2e

Browse files
committed
Also check if it is not already absolute
1 parent bae8be0 commit d5e4b2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ protected function expand($type)
151151
return '';
152152
}
153153

154-
if($this->shouldBeAbsolute($type)){
154+
if($this->isRelativeType($type) && $this->shouldBeAbsolute($type)){
155155
return self::OPERATOR_NAMESPACE . $type;
156156
}
157157

0 commit comments

Comments
 (0)