Hi! > However, arrays are very ergonomic to work with, especially for passing along > a list of properties, which is why many frameworks and libraries still use > them
I am not agree that arrays must be typed in this way. They won’t be this arrays as they are. Instead this week I’ve started working on PHP Schema for PHP arrays, such as JSON or YAML schemas. This is may help you to structure your code if you want to type these types (or vendors). I’ll make a contract for PHP schema, validator, PHP plugin and some kind of validation online. Hope it’ll cover all the needs. If it sounds good for you I’d suggest to collaborate and work on these together. —— Best regards, Dmitrii Derepko @xepozz