Hacker News new | ask | show | jobs
by dkarlovi 2062 days ago
PHPStan and Psalm support what they call "array shapes", basically you can treat the array keys as a type, similar to how TypeScript does it.