Skip to content

Commit d399fcf

Browse files
committed
[TypeResolver] Updated lexer comment
1 parent 481a805 commit d399fcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TypeResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function resolve($type, Context $context = null)
114114
$context = new Context('');
115115
}
116116

117-
// split the type string into tokens `|`, `?`, `(`, `)[]`, '<', '>' and type names
117+
// split the type string into tokens `|`, `?`, `<`, `>`, `,`, `(`, `)[]`, '<', '>' and type names
118118
$tokens = preg_split('/\s*(\\||\\?|<|>|,|\\(|\\)(?:\\[\\])+)\s*/', $type, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
119119
$tokenIterator = new \ArrayIterator($tokens);
120120

0 commit comments

Comments
 (0)