mirror of
https://github.com/moodle/moodle.git
synced 2025-04-23 09:23:09 +02:00
lib/zend: MDL-21460 Zend Reflection - give a nicer error message when the phpdocs don't match the function signature. Bug filed upstream: http://framework.zend.com/issues/browse/ZF-8980
This commit is contained in:
parent
72bb7e3236
commit
9d51b4c531
lib/zend
@ -339,7 +339,8 @@ abstract class Zend_Server_Reflection_Function_Abstract
|
||||
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();
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user