Zend\Code\Generator\MethodGenerator now accepts parameter as array

Solves #6420 issue
substr -> mb_substr?