You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.
Trying to call \Zend\Server\Reflection::reflectClass for a class that extends \Zend\Mvc\Console\Controller\AbstractConsoleController seems to always result in the following exception:
Variable number of arguments is not supported for services (except optional parameters). Number of function arguments must correspond to actual number of arguments described in a docblock.
This seems to be because of the @inheritdoc of \Zend\Mvc\Console\Controller\AbstractConsoleController::dispatch and the dispatch functions of the parent classes. The resulting comment that is parsed looks like this:
There are 4 @param annotations in this text, and all 4 get parsed (see vendor/zendframework/zend-server/src/Reflection/AbstractFunction.php:284) while the actual function only has 2 parameters, resulting in the above mentioned exception.
The docblock comment seems to come from \Zend\Stdlib\DispatchableInterface::dispatch and \Zend\Mvc\Controller\AbstractController::dispatch, but I think the problem is not the Docblock itself but instead the way it is parsed. If more information is necessary, feel free to ask, I can reproduce the error without a problem.
The text was updated successfully, but these errors were encountered:
Trying to call
\Zend\Server\Reflection::reflectClass
for a class that extends\Zend\Mvc\Console\Controller\AbstractConsoleController
seems to always result in the following exception:This seems to be because of the @inheritdoc of
\Zend\Mvc\Console\Controller\AbstractConsoleController::dispatch
and thedispatch
functions of the parent classes. The resulting comment that is parsed looks like this:There are 4 @param annotations in this text, and all 4 get parsed (see
vendor/zendframework/zend-server/src/Reflection/AbstractFunction.php:284
) while the actual function only has 2 parameters, resulting in the above mentioned exception.The docblock comment seems to come from
\Zend\Stdlib\DispatchableInterface::dispatch
and\Zend\Mvc\Controller\AbstractController::dispatch
, but I think the problem is not the Docblock itself but instead the way it is parsed. If more information is necessary, feel free to ask, I can reproduce the error without a problem.The text was updated successfully, but these errors were encountered: