array is a very common type in PHP but is often overused.
I'll try to explain why you don't (almost) need to type hint array anymore !
Table of Contents
1. The problems
2. First steps
3. Using Countable
4. Using ArrayAccess
5. Using Traversable
5.1. The hard way (implementing