Annotation for array of objects

Today PHPstorm supports  /** @var int[] $var */ - for array of integers,  Date[] for array of Date objects

Does PHPstorm plan to support /** @var array<int> $var */ or  /** @var array<Date> $var */ ?

 

0
4 comments
Avatar
Permanently deleted user
0

@Vladimir

That ticket has no mentions of "generics style" (I mean in ticket body) -- only Alexey's comment has it (link to PSR-5 proposal).

Maybe you should adjust the ticket a bit to mention that as well .. or create separate one just for that (so it's clear what syntax it is about) ?

0

Please sign in to leave a comment.