Comment Comment by dkarlovi 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. parent dkarlovi 6 years ago