Skip to content

Commit

Permalink
lib/zend: MDL-21460 Zend Reflection - give a nicer error message when…
Browse files Browse the repository at this point in the history
… the phpdocs don't match the function signature. Bug filed upstream: http://framework.zend.com/issues/browse/ZF-8980
  • Loading branch information
Penny Leach committed Jan 28, 2010
1 parent 72bb7e3 commit 9d51b4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/zend/Zend/Server/Reflection/Function/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,8 @@ protected function _reflect()
require_once 'Zend/Server/Reflection/Exception.php';
throw new Zend_Server_Reflection_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.');
. 'Number of function arguments must correspond to actual number of arguments described in a docblock '
. '(function was ' . $function->getName() . ')');
}

$paramTypes = array();
Expand Down
4 changes: 3 additions & 1 deletion lib/zend/readme_moodle.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ Do not use outside of our /webservice/* !!


Changes:
* lots of files removed, no changes
* lots of files removed
* small fix to error reporting in reflection (MDL-21460, ZF-8980)

0 comments on commit 9d51b4c

Please sign in to comment.