From fd9e6bd26dcd16b65213e96ba12189e1d33a4727 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Sat, 8 Jun 2013 23:04:47 +0200 Subject: [PATCH] Move around --- src/Barryvdh/Reflection/DocBlock/Type/Collection.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Barryvdh/Reflection/DocBlock/Type/Collection.php b/src/Barryvdh/Reflection/DocBlock/Type/Collection.php index d018246..d60bba2 100644 --- a/src/Barryvdh/Reflection/DocBlock/Type/Collection.php +++ b/src/Barryvdh/Reflection/DocBlock/Type/Collection.php @@ -151,15 +151,16 @@ class Collection extends \ArrayObject return ''; } - if($this->isRelativeType($type) && $this->shouldBeAbsolute($type)){ - return self::OPERATOR_NAMESPACE . $type; - } - if ($this->isTypeAnArray($type)) { return $this->expand(substr($type, 0, -2)) . self::OPERATOR_ARRAY; } if ($this->isRelativeType($type) && !$this->isTypeAKeyword($type)) { + + if($this->shouldBeAbsolute($type)){ + return self::OPERATOR_NAMESPACE . $type; + } + $type_parts = explode(self::OPERATOR_NAMESPACE, $type, 2); $namespace_aliases = $this->context->getNamespaceAliases();