2
0
Просмотр исходного кода

ZF-10583
- Minor enhancement to exception message in Zend_Server_Reflection_Function_Abstract (c/o ~ramsey)

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23182 44c647ce-9c0f-0410-b52a-842ac1e357ba

ralph 15 лет назад
Родитель
Сommit
628be9fd5e
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      library/Zend/Server/Reflection/Function/Abstract.php

+ 3 - 1
library/Zend/Server/Reflection/Function/Abstract.php

@@ -339,7 +339,9 @@ 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 in ' . $function->getDeclaringClass()->getName() . '::'
+             . $function->getName() . '() must correspond to actual number of arguments described in the '
+             . 'docblock.');
         }
 
         $paramTypes = array();