2 ms·
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/ https://psalm.dev/ [2]:
by jorams 5y 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/ https://psalm.dev/
[2]: https://psalm.dev/docs/annotating_code/type_syntax/array_types/#object-like-arrays https://psalm.dev/docs/annotating_code/type_syntax/array_typ...