diff --git a/reference/reflection/reflectionmethod/invoke.xml b/reference/reflection/reflectionmethod/invoke.xml index d5251cbc38..efd63a32c3 100644 --- a/reference/reflection/reflectionmethod/invoke.xml +++ b/reference/reflection/reflectionmethod/invoke.xml @@ -12,7 +12,8 @@ public mixedReflectionMethod::invoke objectobject - stringargs + mixedparameter + mixed... Invokes a reflected method. @@ -30,17 +31,17 @@ object - The object to invoke. + The object to invoke the method on. In case of static methods, you can pass + null to this parameter. - args + parameter - The passed in argument list. It accepts a variable number of - arguments which are passed to the function much like - call_user_func is. + Zero or more parameters to be passed to the method. + It accepts a variable number of parameters which are passed to the method. @@ -51,7 +52,18 @@ &reftitle.returnvalues; - + Returns the method result. + + + + + &reftitle.errors; + + A ReflectionException if the object + parameter does not contain an instance of the class that this method was declared in. + + + A ReflectionException if the method invocation failed. diff --git a/reference/reflection/reflectionmethod/invokeargs.xml b/reference/reflection/reflectionmethod/invokeargs.xml index c329ab2cba..afcb3557b9 100644 --- a/reference/reflection/reflectionmethod/invokeargs.xml +++ b/reference/reflection/reflectionmethod/invokeargs.xml @@ -11,7 +11,7 @@ &reftitle.description; public mixedReflectionMethod::invokeArgs - stringobject + objectobject arrayargs @@ -30,7 +30,8 @@ object - + The object to invoke the method on. In case of static methods, you can pass + null to this parameter. @@ -38,7 +39,7 @@ args - + The parameters to be passed to the function, as an array. @@ -49,7 +50,18 @@ &reftitle.returnvalues; - + Returns the method result. + + + + + &reftitle.errors; + + A ReflectionException if the object + parameter does not contain an instance of the class that this method was declared in. + + + A ReflectionException if the method invocation failed.