Skip to content

Commit 9d9b088

Browse files
committed
need to handle null in addition to '';
1 parent 08e8b8f commit 9d9b088

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
@@ -441,7 +441,7 @@ private function resolveCollection(\ArrayIterator $tokens, Type $classType, Cont
441441
}
442442

443443
if ($tokens->current() !== '>') {
444-
if ($tokens->current() === '') {
444+
if (empty($tokens->current())) {
445445
throw new \RuntimeException(
446446
'Collection: ">" is missing'
447447
);

0 commit comments

Comments
 (0)