[0.5.0] Array Syntax
Closed this issue · 5 comments
GrahamCampbell commented
The following is accepted by the parser: array<string,float>
, but this is not: array<string, float>
. Is that intentional?
RuntimeException: A type is missing in a collection expression
phpdocumentor/type-resolver/src/TypeResolver.php:240
phpdocumentor/type-resolver/src/TypeResolver.php:448
phpdocumentor/type-resolver/src/TypeResolver.php:204
phpdocumentor/type-resolver/src/TypeResolver.php:126
jaapio commented
I did't think about that case, I think it should be possible to add that to the tokenizer. But I think it MUST only contain 1 space, multiple should result in an error.
GrahamCampbell commented
Do you want to implement this, or shall I? I don't want us both to implement it at the same time you see. :)
jaapio commented
Pr is much appreciated. Didn't have time to get in to this