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

Issue Type: Bug Created: 2011-08-14T22:08:59.000+0000 Last Updated: 2011-08-25T22:27:06.000+0000 Status: Resolved Fix version(s): Reporter: Shay Ben Moshe (shayfalador) Assignee: Ralph Schindler (ralph) Tags: - Zend\Di

Related issues: Attachments:


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


Posted by Ralph Schindler (ralph) on 2011-08-25T22:27:06.000+0000

Fixed in master in commit cbf5c65

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.