ZF2-49: Zend\Di\DependencyInjector::createInstanceViaConstructor wrong index - line 280


In the file Zend/Di/InstanceManager.php line 280 character 92 there should have been 2 rather than 3.

Currently, when creating a new instance using createInstanceViaConstructor in case count($callParameters) is 3, the returned value is: new $class($callParameters[0], $callParameters[1], $callParameters[3]) which is obviously wrong and should be: new $class($callParameters[0], $callParameters[1], $callParameters[2])

EDIT: I have submitted a pull request in github (link:

Good luck, Shay Ben Moshe, Israel


Fixed in master in commit cbf5c65