mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 10:07:12 +00:00
Added a limit on Collection's explode(), thus (insignificantly, but still) improving performance.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user