I have a relatively simple function which uses a foreach
foreach
function foo($t) { $result; foreach($t as $val) { $result = dosometh
The problem is, that arrays are no objects, so they can't implement an interface. So you can't type hint both, array and Traversable.
array
Traversable