Skip to content

Commit cdaa97e

Browse files
committed
Added a limit on Collection's explode(), thus (insignificantly, but still) improving performance.
1 parent 27bdc08 commit cdaa97e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/phpDocumentor/Reflection/DocBlock/Type/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ protected function expand($type)
208208
}
209209

210210
if ($this->isRelativeType($type) && !$this->isTypeAKeyword($type)) {
211-
$type_parts = explode(self::OPERATOR_NAMESPACE, $type);
211+
$type_parts = explode(self::OPERATOR_NAMESPACE, $type, 2);
212212

213213
// if the first segment is not an alias; prepend namespace name and
214214
// return

0 commit comments

Comments
 (0)