Open rzvc opened 2 years ago
/** * @psalm-type Shape = array{ a: string } * @param Shape[a] $x */ function test($x) : void { print_r($x); }
https://psalm.dev/r/9584255613
Typescript has this, in the form Interface['a'].
Interface['a']
I found these snippets:
https://psalm.dev/r/9584255613
Typescript has this, in the form
Interface['a']
.