From 63a8fb34d4404072bec2b652ab3208596a532362 Mon Sep 17 00:00:00 2001 From: Vasil Rangelov Date: Wed, 14 Nov 2012 22:42:56 +0200 Subject: [PATCH] Added a limit on Collection's explode(), thus (insignificantly, but still) improving performance. --- src/phpDocumentor/Reflection/DocBlock/Type/Collection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phpDocumentor/Reflection/DocBlock/Type/Collection.php b/src/phpDocumentor/Reflection/DocBlock/Type/Collection.php index e48df85..acee95e 100644 --- a/src/phpDocumentor/Reflection/DocBlock/Type/Collection.php +++ b/src/phpDocumentor/Reflection/DocBlock/Type/Collection.php @@ -208,7 +208,7 @@ class Collection extends \ArrayObject } if ($this->isRelativeType($type) && !$this->isTypeAKeyword($type)) { - $type_parts = explode(self::OPERATOR_NAMESPACE, $type); + $type_parts = explode(self::OPERATOR_NAMESPACE, $type, 2); // if the first segment is not an alias; prepend namespace name and // return