From 3c20a0745ce8ee61feb7befaeb400ddf29d47500 Mon Sep 17 00:00:00 2001 From: Sergey Panteleev Date: Tue, 7 Nov 2023 21:35:36 +0300 Subject: [PATCH] [PHP 8.3] ReflectionMethod::createFromMethodName --- .../reflectionmethod/createfrommethodname.xml | 102 ++++++++++++++++++ reference/reflection/versions.xml | 1 + 2 files changed, 103 insertions(+) create mode 100644 reference/reflection/reflectionmethod/createfrommethodname.xml diff --git a/reference/reflection/reflectionmethod/createfrommethodname.xml b/reference/reflection/reflectionmethod/createfrommethodname.xml new file mode 100644 index 000000000000..a662cc39f7a7 --- /dev/null +++ b/reference/reflection/reflectionmethod/createfrommethodname.xml @@ -0,0 +1,102 @@ + + + + ReflectionMethod::createFromMethodName + Creates a new ReflectionMethod + + + + &reftitle.description; + + public static staticReflectionMethod::createFromMethodName + stringmethod + + + Creates a new ReflectionMethod. + + + + + &reftitle.parameters; + + + + method + + + Class name and method name delimited by ::. + + + + + + + + + &reftitle.returnvalues; + + Returns a new ReflectionMethod on success. + + + + + &reftitle.errors; + + A ReflectionException is thrown if the given method does not exist. + + + + + &reftitle.examples; + + <methodname>ReflectionMethod::createFromMethodName</methodname> example + + +]]> + + &example.outputs; + + + string(3) "bar" + ["class"]=> + string(3) "Foo" +} +]]> + + + + + + diff --git a/reference/reflection/versions.xml b/reference/reflection/versions.xml index 467515465f62..c9306527d28e 100644 --- a/reference/reflection/versions.xml +++ b/reference/reflection/versions.xml @@ -121,6 +121,7 @@ +