Преглед изворни кода

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 година
родитељ
комит
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';
             require_once 'Zend/Server/Reflection/Exception.php';
             throw new Zend_Server_Reflection_Exception(
             throw new Zend_Server_Reflection_Exception(
                'Variable number of arguments is not supported for services (except optional parameters). '
                '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();
         $paramTypes = array();