Y
Hacker News
new
|
ask
|
show
|
jobs
by
jorams
1670 days ago
PHP doesn't do such structural typing, but Psalm[1] can do it statically. It calls them object-like arrays.[2]
[1]:
https://psalm.dev/
[2]:
https://psalm.dev/docs/annotating_code/type_syntax/array_typ...