ezimuel/zf2 — comment on commit 8aead89859ada5f057333e7691fb1e01ae0be61a
File: library/Zend/Config/Writer/AbstractWriter.php line 79
By DASPRiD:

No explicit check required. Config is instanceof Traversable, and IteratorToArray will call the toArray() method by itself if the passed object has one.