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 27bdc08a1e
commit cdaa97eb31
@@ -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