ZF2-204: Zend\Module\Listener\ListenerOptions fails with passing object of type Zend\Config\Config

Description

When creating a Zend\Module\Listener\ListenerOptions object by passing a Zend\Config\Config object with listener_options via the constructor, the ListenerOptions parent class (Zend/Stdlib/Options) uses the magic in the setFromArray function to call setModulePaths, which currently only accepts variables of type array, which causes an exception.

Perhaps doing an is_array or instanceof Traversable would fix this issue?

Comments

This is a Zend\Module thing.