Added a limit on Collection's explode(), thus (insignificantly, but still) improving performance.

This commit is contained in:
Vasil Rangelov
2012-11-14 22:42:56 +02:00
parent 09b2cb083d
commit 63a8fb34d4
@@ -208,7 +208,7 @@ class Collection extends \ArrayObject
} }
if ($this->isRelativeType($type) && !$this->isTypeAKeyword($type)) { 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 // if the first segment is not an alias; prepend namespace name and
// return // return