Nailed it.
This is the core problem with PHP for me.I love PHP and use it every day. Part of that is the strength and versatility of the arrays implementation (i.e. hashmap). However, the problem is always the fact that an array cant be typed.
IF they could just introduce that, it would solve 80% of user-land issues over night.