The injector uses a hack/workaround and reflection to instanciate
classes with multiple parameters. Since PHP 5.6 this is no longer
necessary because of argument unpacking with the splat operator.
The constructor's phpdoc is incorrect and some functions were missing
proper @throws tags as well.
This commit aims to improve the code quality and maintainability. All changed lines are covered by existing tests. It does not change the components behavior, adds features or fixes bugs.
The injector uses a hack/workaround and reflection to instanciate classes with multiple parameters. Since PHP 5.6 this is no longer necessary because of argument unpacking with the splat operator.
The constructor's phpdoc is incorrect and some functions were missing proper
@throws
tags as well.This commit aims to improve the code quality and maintainability. All changed lines are covered by existing tests. It does not change the components behavior, adds features or fixes bugs.