Closed
Description
Bug report
Code snippet that reproduces the problem
Something like
Collection<int, int>[]
Should be a valid type
No error with psalm: https://psalm.dev/r/26d249d13d
An error with phpstan (the last one): https://phpstan.org/r/a42e2d1b-d1fe-4c8b-a4df-9c6e61b422b1
PHPDoc tag @param has invalid value (Collection<int, int>[] $bars): Unexpected token "[", expected variable at offset 38
An actual workaround is (Collection<int, int>)[]
but I think the phpDoc parser should still be improved to handle the syntax.
Metadata
Metadata
Assignees
Labels
No labels